diff --git a/src/core/MainWindow.cpp b/src/core/MainWindow.cpp index 0174a8ce..bd27ac69 100644 --- a/src/core/MainWindow.cpp +++ b/src/core/MainWindow.cpp @@ -755,6 +755,8 @@ void MainWindow::closeEvent(QCloseEvent *event) return; } + activateWindow(); + QMessageBox::StandardButton ret = QMessageBox::question(this, APPNAME, tr("Do you really want to exit?\nSave your project before closing!"), (QMessageBox::StandardButtons)(QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel));