mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-13 01:59:22 -04:00
Only save geometry when close event is accepted.
This commit is contained in:
parent
6659745e2b
commit
1decdc6c11
1 changed files with 2 additions and 1 deletions
|
@ -416,10 +416,11 @@ void MainWindow::databaseTabChanged(int tabIndex)
|
||||||
|
|
||||||
void MainWindow::closeEvent(QCloseEvent* event)
|
void MainWindow::closeEvent(QCloseEvent* event)
|
||||||
{
|
{
|
||||||
saveWindowInformation();
|
|
||||||
bool accept = saveLastDatabases();
|
bool accept = saveLastDatabases();
|
||||||
|
|
||||||
if (accept) {
|
if (accept) {
|
||||||
|
saveWindowInformation();
|
||||||
|
|
||||||
event->accept();
|
event->accept();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue