From 85c1a1dbac5803a603ac16989ded2691c0baa917 Mon Sep 17 00:00:00 2001 From: apa420 Date: Fri, 26 Oct 2018 18:08:11 +0200 Subject: [PATCH] Ability to click error message when not providing correct account info, Fixes #488 --- src/widgets/dialogs/LoginDialog.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/widgets/dialogs/LoginDialog.cpp b/src/widgets/dialogs/LoginDialog.cpp index 146557ee9..d94a6a23c 100644 --- a/src/widgets/dialogs/LoginDialog.cpp +++ b/src/widgets/dialogs/LoginDialog.cpp @@ -48,6 +48,12 @@ namespace { if (errors.length() > 0) { QMessageBox messageBox; +// Set error window on top +#ifdef USEWINSDK + ::SetWindowPos(HWND(messageBox.winId()), HWND_TOPMOST, 0, 0, 0, 0, + SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW); + +#endif messageBox.setIcon(QMessageBox::Critical); messageBox.setText(errors.join("
")); messageBox.setStandardButtons(QMessageBox::Ok);