Fix keepass-browser based popups on tiling WMs

If we set the window flags after showing/activating the window the
window will not pop up.

Fixes: https://github.com/keepassxreboot/keepassxc/issues/1452
This commit is contained in:
Matthew Thode 2018-02-04 15:43:45 -06:00
parent a5993afb60
commit 78e962e30a
No known key found for this signature in database
GPG Key ID: 64A37BEAAE19A4E8

View File

@ -188,10 +188,10 @@ QString BrowserService::storeKey(const QString& key)
"If you would like to allow it access to your KeePassXC database,\n"
"give it a unique name to identify and accept it."));
keyDialog.setOkButtonText(tr("Save and allow access"));
keyDialog.setWindowFlags(keyDialog.windowFlags() | Qt::WindowStaysOnTopHint);
keyDialog.show();
keyDialog.activateWindow();
keyDialog.raise();
keyDialog.setWindowFlags(keyDialog.windowFlags() | Qt::WindowStaysOnTopHint);
auto ok = keyDialog.exec();
id = keyDialog.textValue();