From 1decdc6c11de39084dc2d7f36a4c9a26aedd670e Mon Sep 17 00:00:00 2001 From: Florian Geyer Date: Mon, 24 Mar 2014 19:58:31 +0100 Subject: [PATCH] Only save geometry when close event is accepted. --- src/gui/MainWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {