From d61959466e304d6cebf4b78cfcf16041b2d37683 Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Mon, 26 May 2025 02:07:12 +0100 Subject: [PATCH] Bring the database open/unlock dialogue box into line with other on-top windows. --- src/gui/DatabaseOpenDialog.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/gui/DatabaseOpenDialog.cpp b/src/gui/DatabaseOpenDialog.cpp index 881db4087..b562c084d 100644 --- a/src/gui/DatabaseOpenDialog.cpp +++ b/src/gui/DatabaseOpenDialog.cpp @@ -35,12 +35,8 @@ DatabaseOpenDialog::DatabaseOpenDialog(QWidget* parent) , m_tabBar(new QTabBar(this)) { setWindowTitle(tr("Unlock Database - KeePassXC")); - setWindowFlags(Qt::Dialog); + setWindowFlags(Qt::Dialog | Qt::WindowStaysOnTopHint); setWindowFlag(Qt::WindowContextHelpButtonHint, false); -#ifdef Q_OS_LINUX - // Linux requires this to overcome some Desktop Environments (also no Quick Unlock) - setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint); -#endif // block input to the main window/application while the dialog is open setWindowModality(Qt::ApplicationModal); #ifdef Q_OS_WIN