From dc75761856bf1432c9a7bc90da137697fc2173cd Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Sun, 21 Jun 2009 00:03:59 +0300 Subject: [PATCH] GUI: Don't allow to open Settings-dialog while checking. --- gui/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 9dc8e7b16..4f9fe29c4 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -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);