From 86f12d9e8353373a35f7c7b8b195e00cd3dacb20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20Nie=C3=9Fen?= Date: Thu, 8 Oct 2015 16:27:29 +0200 Subject: [PATCH] cleaner handling of TrayIconEnabled --- src/gui/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index 41d2cd4fc..dabc56da6 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -470,7 +470,7 @@ void MainWindow::databaseTabChanged(int tabIndex) void MainWindow::closeEvent(QCloseEvent* event) { - bool minimizeOnClose = config()->get("GUI/ShowTrayIcon").toBool() && + bool minimizeOnClose = isTrayIconEnabled() && config()->get("GUI/MinimizeToTray").toBool() && config()->get("GUI/MinimizeOnClose").toBool(); if (minimizeOnClose && !appExitCalled)