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 2022-04-02 12:01:39 -04:00
parent 2b8d670f17
commit d8da81d87c

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