Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan White <support@dmapps.us>2021-01-16 18:41:10 +0300
committerJonathan White <support@dmapps.us>2021-01-29 05:21:49 +0300
commit63df00a723c9ebd55f9138c319d8f567f48cd9a5 (patch)
treec395182363fcc12a90cc443c47f199e771bdbf7c
parentdb18a14cde40dc24a5f2f2a10cb5b874ca2c8174 (diff)
Auto-close About Dialog before locking databases
* Fixes #5941
-rw-r--r--src/gui/MainWindow.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp
index c7df04a69..7f0f3bf6f 100644
--- a/src/gui/MainWindow.cpp
+++ b/src/gui/MainWindow.cpp
@@ -938,6 +938,13 @@ void MainWindow::updateWindowTitle()
void MainWindow::showAboutDialog()
{
auto* aboutDialog = new AboutDialog(this);
+ // Auto close the about dialog before attempting database locks
+ if (m_ui->tabWidget->currentDatabaseWidget()) {
+ connect(m_ui->tabWidget->currentDatabaseWidget(),
+ &DatabaseWidget::databaseLockRequested,
+ aboutDialog,
+ &AboutDialog::close);
+ }
aboutDialog->open();
}