make usre we have a project file before outputting its name

This commit is contained in:
Robert Reif 2011-06-06 18:30:44 -04:00
parent 6a7e4c838f
commit 5a27552669
1 changed files with 4 additions and 2 deletions

View File

@ -296,6 +296,7 @@ void MainWindow::DoCheckFiles(const QStringList &files)
mUI.mResults->SetCheckDirectory(checkPath);
Settings checkSettings = GetCppcheckSettings();
if (mProject)
qDebug() << "Checking project file" << mProject->GetProjectFile()->GetFilename();
mThread->Check(checkSettings, false);
@ -486,6 +487,7 @@ void MainWindow::ReCheck()
Q_ASSERT(filesCount > 0); // If no files should not be able to recheck
mUI.mResults->CheckingStarted(filesCount);
if (mProject)
qDebug() << "Rechecking project file" << mProject->GetProjectFile()->GetFilename();
mThread->Check(GetCppcheckSettings(), true);