mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-27 16:29:44 -05:00
Only save geometry when close event is accepted.
This commit is contained in:
parent
6659745e2b
commit
1decdc6c11
@ -416,10 +416,11 @@ void MainWindow::databaseTabChanged(int tabIndex)
|
||||
|
||||
void MainWindow::closeEvent(QCloseEvent* event)
|
||||
{
|
||||
saveWindowInformation();
|
||||
bool accept = saveLastDatabases();
|
||||
|
||||
if (accept) {
|
||||
saveWindowInformation();
|
||||
|
||||
event->accept();
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user