Oops, forgot this comment

This commit is contained in:
David Sansome 2010-04-19 14:23:57 +00:00
parent 56bb697d06
commit 66d83fd120
1 changed files with 2 additions and 0 deletions

View File

@ -627,6 +627,8 @@ void MainWindow::closeEvent(QCloseEvent* event) {
void MainWindow::SetHiddenInTray(bool hidden) {
settings_.setValue("hidden", hidden);
// Some window managers don't remember maximized state between calls to
// hide() and show(), so we have to remember it ourself.
if (hidden) {
was_maximized_ = isMaximized();
hide();