Closing Cutter during debug stops the process

This commit is contained in:
mandlebro 2018-07-24 00:10:07 +01:00 committed by xarkes
parent 13c3ff4cf8
commit 4314add765

View File

@ -439,11 +439,15 @@ void MainWindow::closeEvent(QCloseEvent *event)
if (ret == QMessageBox::Save) {
if (saveProject(true) && !Core()->currentlyDebugging) {
saveSettings();
} else if (Core()->currentlyDebugging) {
Core()->stopDebug();
}
QMainWindow::closeEvent(event);
} else if (ret == QMessageBox::Discard) {
if (!Core()->currentlyDebugging) {
saveSettings();
} else if (Core()->currentlyDebugging) {
Core()->stopDebug();
}
QMainWindow::closeEvent(event);
} else {