GUI: ensure Settings::terminated is false when analysis is started

This commit is contained in:
Daniel Marjamäki 2017-08-06 21:28:49 +02:00
parent da255c35d3
commit c0c7a0a877
1 changed files with 4 additions and 0 deletions

4
gui/mainwindow.cpp Normal file → Executable file
View File

@ -558,6 +558,8 @@ QStringList MainWindow::selectFilesToAnalyze(QFileDialog::FileMode mode)
void MainWindow::analyzeFiles() void MainWindow::analyzeFiles()
{ {
Settings::terminate(false);
QStringList selected = selectFilesToAnalyze(QFileDialog::ExistingFiles); QStringList selected = selectFilesToAnalyze(QFileDialog::ExistingFiles);
const QString file0 = (selected.size() ? selected[0].toLower() : QString()); const QString file0 = (selected.size() ? selected[0].toLower() : QString());
@ -1370,6 +1372,8 @@ bool MainWindow::loadLastResults()
void MainWindow::analyzeProject(const ProjectFile *projectFile) void MainWindow::analyzeProject(const ProjectFile *projectFile)
{ {
Settings::terminate(false);
QFileInfo inf(projectFile->getFilename()); QFileInfo inf(projectFile->getFilename());
const QString rootpath = projectFile->getRootPath(); const QString rootpath = projectFile->getRootPath();