From 66d83fd120e3d7ca9b7232ab7089a9c5901cf83c Mon Sep 17 00:00:00 2001 From: David Sansome Date: Mon, 19 Apr 2010 14:23:57 +0000 Subject: [PATCH] Oops, forgot this comment --- src/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index e6b2f1858..875771e92 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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();