GUI: Don't allow to open Settings-dialog while checking.
This commit is contained in:
parent
7c50e74b95
commit
dc75761856
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue