Revert DatabaseOpenDialog to be always on top on Linux

Fixes regression due to issues with dialogs appearing above other windows on some Linux Desktop Envs.
This commit is contained in:
Jonathan White committed 2022-04-02 12:50:31 -04:00
1 parent 2b8d670f17
commit d8da81d87c
1 file changed
+4
+4
View File
@@ -36,6 +36,10 @@ DatabaseOpenDialog::DatabaseOpenDialog(QWidget* parent)
{
setWindowTitle(tr("Unlock Database - KeePassXC"));
setWindowFlags(Qt::Dialog);
#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