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,7 +296,8 @@ void MainWindow::DoCheckFiles(const QStringList &files)
mUI.mResults->SetCheckDirectory(checkPath);
Settings checkSettings = GetCppcheckSettings();
qDebug() << "Checking project file" << mProject->GetProjectFile()->GetFilename();
if (mProject)
qDebug() << "Checking project file" << mProject->GetProjectFile()->GetFilename();
mThread->Check(checkSettings, false);
}
@ -486,7 +487,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();
if (mProject)
qDebug() << "Rechecking project file" << mProject->GetProjectFile()->GetFilename();
mThread->Check(GetCppcheckSettings(), true);
}