mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 20:06:12 +00:00
Closing Cutter during debug stops the process
This commit is contained in:
parent
13c3ff4cf8
commit
4314add765
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user