Skip to content

Commit d619594

Browse files
committed
Bring the database open/unlock dialogue box into line with other on-top windows.
1 parent f32ed71 commit d619594

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/gui/DatabaseOpenDialog.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,8 @@ DatabaseOpenDialog::DatabaseOpenDialog(QWidget* parent)
3535
, m_tabBar(new QTabBar(this))
3636
{
3737
setWindowTitle(tr("Unlock Database - KeePassXC"));
38-
setWindowFlags(Qt::Dialog);
38+
setWindowFlags(Qt::Dialog | Qt::WindowStaysOnTopHint);
3939
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
40-
#ifdef Q_OS_LINUX
41-
// Linux requires this to overcome some Desktop Environments (also no Quick Unlock)
42-
setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint);
43-
#endif
4440
// block input to the main window/application while the dialog is open
4541
setWindowModality(Qt::ApplicationModal);
4642
#ifdef Q_OS_WIN

0 commit comments

Comments
 (0)