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();