diff --git a/src/gui/DatabaseOpenDialog.cpp b/src/gui/DatabaseOpenDialog.cpp index 5e6e41b7a..e7194b7e2 100644 --- a/src/gui/DatabaseOpenDialog.cpp +++ b/src/gui/DatabaseOpenDialog.cpp @@ -25,11 +25,7 @@ DatabaseOpenDialog::DatabaseOpenDialog(QWidget* parent) , m_view(new DatabaseOpenWidget(this)) { setWindowTitle(tr("Unlock Database - KeePassXC")); -#ifdef Q_OS_MACOS - setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint); -#else - setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint | Qt::ForeignWindow); -#endif + setWindowFlags(Qt::Dialog | Qt::WindowStaysOnTopHint); connect(m_view, SIGNAL(dialogFinished(bool)), this, SLOT(complete(bool))); auto* layout = new QVBoxLayout(); layout->setMargin(0);