Only save geometry when close event is accepted.

This commit is contained in:
Florian Geyer 2014-03-24 19:58:31 +01:00
parent 6659745e2b
commit 1decdc6c11

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 {