From c0c7a0a8778148bfab5ad087cd39c86525e902b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 6 Aug 2017 21:28:49 +0200 Subject: [PATCH] GUI: ensure Settings::terminated is false when analysis is started --- gui/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) mode change 100644 => 100755 gui/mainwindow.cpp diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp old mode 100644 new mode 100755 index 24ef2d5d9..6b50df1d1 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -558,6 +558,8 @@ QStringList MainWindow::selectFilesToAnalyze(QFileDialog::FileMode mode) void MainWindow::analyzeFiles() { + Settings::terminate(false); + QStringList selected = selectFilesToAnalyze(QFileDialog::ExistingFiles); const QString file0 = (selected.size() ? selected[0].toLower() : QString()); @@ -1370,6 +1372,8 @@ bool MainWindow::loadLastResults() void MainWindow::analyzeProject(const ProjectFile *projectFile) { + Settings::terminate(false); + QFileInfo inf(projectFile->getFilename()); const QString rootpath = projectFile->getRootPath();