UI: Raise & activate the password dialog after shown.

This commit is contained in:
Nodir Temirkhodjaev 2021-04-12 11:23:06 +03:00
parent f568020322
commit e359f1ec45

View File

@ -106,6 +106,11 @@ void PasswordDialog::setupButtonBox()
bool PasswordDialog::getPassword(QString &password, UnlockType &unlockType, QWidget *parent) bool PasswordDialog::getPassword(QString &password, UnlockType &unlockType, QWidget *parent)
{ {
PasswordDialog dialog(parent); PasswordDialog dialog(parent);
dialog.show();
dialog.raise();
dialog.activateWindow();
if (dialog.exec() == 0) if (dialog.exec() == 0)
return false; return false;