Only save geometry when close event is accepted.

This commit is contained in:
Florian Geyer committed 2014-03-24 20:03:40 +01:00
1 parent 6659745e2b
commit 1decdc6c11
1 file changed
+2 -1
+2 -1
View File
@@ -416,10 +416,11 @@ void MainWindow::databaseTabChanged(int tabIndex)
void MainWindow::closeEvent(QCloseEvent* event)
{
saveWindowInformation();
bool accept = saveLastDatabases();
if (accept) {
saveWindowInformation();
event->accept();
}
else {