diff --git a/src/widgets/dialogs/LoginDialog.cpp b/src/widgets/dialogs/LoginDialog.cpp index 146557ee..d94a6a23 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);