Fix unable to restore window when always hide the main window option is set

This commit is contained in:
Bartłomiej Burdukiewicz 2010-09-02 13:41:25 +00:00
parent 1b78e8137c
commit 29464bccfe
1 changed files with 4 additions and 0 deletions

View File

@ -832,6 +832,10 @@ void MainWindow::ToggleShowHide() {
hide();
setWindowState((windowState() & ~Qt::WindowMinimized) | Qt::WindowActive);
SetHiddenInTray(false);
} else if (!isVisible())
{
show();
activateWindow();
} else {
// Window is not hidden but does not have focus; bring it to front.
activateWindow();