mirror of
https://github.com/tnodir/fort
synced 2024-11-15 17:31:18 +00:00
UI: Raise & activate the password dialog after shown.
This commit is contained in:
parent
f568020322
commit
e359f1ec45
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user