diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index 5ea6ca50e..36fb656f2 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -416,10 +416,11 @@ void MainWindow::databaseTabChanged(int tabIndex) void MainWindow::closeEvent(QCloseEvent* event) { - saveWindowInformation(); bool accept = saveLastDatabases(); if (accept) { + saveWindowInformation(); + event->accept(); } else {