mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-30 00:35:25 +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 (ret == QMessageBox::Save) {
|
||||||
if (saveProject(true) && !Core()->currentlyDebugging) {
|
if (saveProject(true) && !Core()->currentlyDebugging) {
|
||||||
saveSettings();
|
saveSettings();
|
||||||
|
} else if (Core()->currentlyDebugging) {
|
||||||
|
Core()->stopDebug();
|
||||||
}
|
}
|
||||||
QMainWindow::closeEvent(event);
|
QMainWindow::closeEvent(event);
|
||||||
} else if (ret == QMessageBox::Discard) {
|
} else if (ret == QMessageBox::Discard) {
|
||||||
if (!Core()->currentlyDebugging) {
|
if (!Core()->currentlyDebugging) {
|
||||||
saveSettings();
|
saveSettings();
|
||||||
|
} else if (Core()->currentlyDebugging) {
|
||||||
|
Core()->stopDebug();
|
||||||
}
|
}
|
||||||
QMainWindow::closeEvent(event);
|
QMainWindow::closeEvent(event);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user