Browse Source

Fix crash when restoring from tray. Closes #5854.

adaptive-webui-19844
Chocobo1 8 years ago
parent
commit
59942531df
  1. 2
      src/gui/mainwindow.cpp

2
src/gui/mainwindow.cpp

@ -920,7 +920,7 @@ void MainWindow::toggleVisibility(QSystemTrayIcon::ActivationReason e) @@ -920,7 +920,7 @@ void MainWindow::toggleVisibility(QSystemTrayIcon::ActivationReason e)
return;
}
// Make sure the window is not minimized
setWindowState(windowState() & (~Qt::WindowMinimized | Qt::WindowActive));
setWindowState((windowState() & ~Qt::WindowMinimized) | Qt::WindowActive);
// Then show it
show();
raise();

Loading…
Cancel
Save