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
This commit is contained in:
parent
7329537b80
commit
1d79d379c9
|
@ -1254,7 +1254,14 @@ void KeepassMainWindow::OnSysTrayActivated(QSystemTrayIcon::ActivationReason rea
|
||||||
}
|
}
|
||||||
|
|
||||||
void KeepassMainWindow::restoreWindow(){
|
void KeepassMainWindow::restoreWindow(){
|
||||||
|
#ifdef Q_WS_WIN
|
||||||
|
if (windowState() & Qt::WindowMaximized)
|
||||||
|
showMaximized();
|
||||||
|
else
|
||||||
|
showNormal();
|
||||||
|
#else
|
||||||
showNormal();
|
showNormal();
|
||||||
|
#endif
|
||||||
activateWindow();
|
activateWindow();
|
||||||
if (IsLocked)
|
if (IsLocked)
|
||||||
OnUnLockWorkspace();
|
OnUnLockWorkspace();
|
||||||
|
|
Loading…
Reference in New Issue