From d5213ee34d58ffeeeb99d750d58034ee31c1e9ae Mon Sep 17 00:00:00 2001 From: Daniel Albers Date: Mon, 2 Feb 2009 11:01:11 +0100 Subject: [PATCH 1/1] fix restore via systray icon ignoring first click --- src/qtui/mainwin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qtui/mainwin.cpp b/src/qtui/mainwin.cpp index 643df368..8e11a291 100644 --- a/src/qtui/mainwin.cpp +++ b/src/qtui/mainwin.cpp @@ -684,7 +684,7 @@ void MainWin::closeEvent(QCloseEvent *event) { QtUiApplication* app = qobject_cast qApp; Q_ASSERT(app); if(!app->aboutToQuit() && s.value("UseSystemTrayIcon").toBool() && s.value("MinimizeOnClose").toBool()) { - hideToTray(); + toggleMinimizedToTray(); event->ignore(); } else { event->accept(); -- 2.20.1