Ability to click error message when not providing correct account info, Fixes #488

This commit is contained in:
apa420 2018-10-26 18:08:11 +02:00 committed by pajlada
parent 65f54ebac3
commit 85c1a1dbac

View file

@ -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("<br />"));
messageBox.setStandardButtons(QMessageBox::Ok);