Fixed #3492 (GUI: after edit project recheck use old settings)

This commit is contained in:
Daniel Marjamäki 2016-10-01 13:08:58 +02:00
parent d4d1d32937
commit 6f133a397b
2 changed files with 6 additions and 3 deletions

View File

@ -789,6 +789,8 @@ Settings MainWindow::GetCppcheckSettings()
result.jobs = 1; result.jobs = 1;
} }
result.terminate(false);
return result; return result;
} }
@ -1375,7 +1377,8 @@ void MainWindow::EditProjectFile()
msg.exec(); msg.exec();
return; return;
} }
mProject->Edit(); if (mProject->Edit())
CheckProject(mProject);
} }
void MainWindow::ShowLogView() void MainWindow::ShowLogView()

View File

@ -97,8 +97,8 @@ public:
bool verbose; bool verbose;
/** @brief Request termination of checking */ /** @brief Request termination of checking */
void terminate() { void terminate(bool t = true) {
Settings::_terminated = true; Settings::_terminated = t;
} }
/** @brief termination requested? */ /** @brief termination requested? */