mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-29 01:06:27 -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)
|
void MainWindow::closeEvent(QCloseEvent* event)
|
||||||
{
|
{
|
||||||
saveWindowInformation();
|
|
||||||
bool accept = saveLastDatabases();
|
bool accept = saveLastDatabases();
|
||||||
|
|
||||||
if (accept) {
|
if (accept) {
|
||||||
|
saveWindowInformation();
|
||||||
|
|
||||||
event->accept();
|
event->accept();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user