From e359f1ec45580258541d27d114f99a101553af81 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Mon, 12 Apr 2021 11:23:06 +0300 Subject: [PATCH] UI: Raise & activate the password dialog after shown. --- src/ui/form/dialog/passworddialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui/form/dialog/passworddialog.cpp b/src/ui/form/dialog/passworddialog.cpp index 543af01e..e58e7974 100644 --- a/src/ui/form/dialog/passworddialog.cpp +++ b/src/ui/form/dialog/passworddialog.cpp @@ -106,6 +106,11 @@ void PasswordDialog::setupButtonBox() bool PasswordDialog::getPassword(QString &password, UnlockType &unlockType, QWidget *parent) { PasswordDialog dialog(parent); + + dialog.show(); + dialog.raise(); + dialog.activateWindow(); + if (dialog.exec() == 0) return false;