mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-28 21:06:59 -08:00
FdoSecrets: only emit completed signal when the action actually finishes
This commit is contained in:
1 parent
af14929af1
commit
adb29dd0e4
10 files changed
+71
-15
No files matched your search
@@ -51,7 +51,7 @@ void DatabaseOpenDialog::setTargetDatabaseWidget(DatabaseWidget* dbWidget)
|
||||
disconnect(this, nullptr, m_dbWidget, nullptr);
|
||||
}
|
||||
m_dbWidget = dbWidget;
|
||||
connect(this, SIGNAL(dialogFinished(bool)), dbWidget, SLOT(unlockDatabase(bool)));
|
||||
connect(this, &DatabaseOpenDialog::dialogFinished, dbWidget, &DatabaseWidget::unlockDatabase);
|
||||
}
|
||||
|
||||
void DatabaseOpenDialog::setIntent(DatabaseOpenDialog::Intent intent)
|
||||
@@ -90,6 +90,6 @@ void DatabaseOpenDialog::complete(bool accepted)
|
||||
} else {
|
||||
reject();
|
||||
}
|
||||
emit dialogFinished(accepted);
|
||||
emit dialogFinished(accepted, m_dbWidget);
|
||||
clearForms();
|
||||
}
|
||||
Reference in new issue
Block a user