Maximized state not saved when minimizing to tray [Windows] (Bug #2926367)

git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@358 b624d157-de02-0410-bad0-e51aec6abb33
master
sniperbeamer 15 years ago
parent 7329537b80
commit 1d79d379c9
  1. 7
      src/mainwindow.cpp

@ -1254,7 +1254,14 @@ void KeepassMainWindow::OnSysTrayActivated(QSystemTrayIcon::ActivationReason rea
}
void KeepassMainWindow::restoreWindow(){
#ifdef Q_WS_WIN
if (windowState() & Qt::WindowMaximized)
showMaximized();
else
showNormal();
#else
showNormal();
#endif
activateWindow();
if (IsLocked)
OnUnLockWorkspace();