GUI: Don't allow to open Settings-dialog while checking.

This commit is contained in:
Kimmo Varis 2009-06-21 00:03:59 +03:00
parent 7c50e74b95
commit dc75761856
1 changed files with 2 additions and 1 deletions

View File

@ -273,6 +273,7 @@ void MainWindow::DoCheckFiles(QFileDialog::FileMode mode)
QString absDirectory = inf.absoluteDir().path();
mSettings.setValue(tr("Check path"), absDirectory);
EnableCheckButtons(false);
mActionSettings.setEnabled(false);
mResults.SetCheckDirectory(absDirectory);
mThread->Check(GetCppcheckSettings(), false);
}
@ -347,10 +348,10 @@ QStringList MainWindow::RemoveUnacceptedFiles(const QStringList &list)
return result;
}
void MainWindow::CheckDone()
{
EnableCheckButtons(true);
mActionSettings.setEnabled(true);
if (mResults.HasResults())
{
mActionClearResults.setEnabled(true);