From 78e962e30a1c232c0ce07637c0d9f2636c76141a Mon Sep 17 00:00:00 2001 From: Matthew Thode Date: Sun, 4 Feb 2018 15:43:45 -0600 Subject: [PATCH] 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 --- src/browser/BrowserService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/BrowserService.cpp b/src/browser/BrowserService.cpp index 0a0ff296..fb89e8bc 100644 --- a/src/browser/BrowserService.cpp +++ b/src/browser/BrowserService.cpp @@ -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();