diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index f43f5f2a5..98fa58ce6 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -295,6 +295,9 @@ void MainWindow::DoCheckFiles(const QStringList &files) mUI.mResults->SetCheckDirectory(checkPath); Settings checkSettings = GetCppcheckSettings(); + + qDebug() << "Checking project file" << mProject->GetProjectFile()->GetFilename(); + mThread->Check(checkSettings, false); } @@ -483,6 +486,8 @@ void MainWindow::ReCheck() Q_ASSERT(filesCount > 0); // If no files should not be able to recheck mUI.mResults->CheckingStarted(filesCount); + qDebug() << "Rechecking project file" << mProject->GetProjectFile()->GetFilename(); + mThread->Check(GetCppcheckSettings(), true); } diff --git a/gui/projectfile.h b/gui/projectfile.h index 2986f11a7..fea732587 100644 --- a/gui/projectfile.h +++ b/gui/projectfile.h @@ -80,6 +80,15 @@ public: */ QStringList GetIgnoredPaths() const; + /** + * @brief Get filename for the project file. + * @return file name. + */ + QString GetFilename() + { + return mFilename; + } + /** * @brief Set project root path. * @param rootpath new project root path.