cleaner handling of TrayIconEnabled

This commit is contained in:
Frank Nießen 2015-10-08 16:27:29 +02:00
parent 539f86fd0b
commit 86f12d9e83

View File

@ -470,7 +470,7 @@ void MainWindow::databaseTabChanged(int tabIndex)
void MainWindow::closeEvent(QCloseEvent* event) void MainWindow::closeEvent(QCloseEvent* event)
{ {
bool minimizeOnClose = config()->get("GUI/ShowTrayIcon").toBool() && bool minimizeOnClose = isTrayIconEnabled() &&
config()->get("GUI/MinimizeToTray").toBool() && config()->get("GUI/MinimizeToTray").toBool() &&
config()->get("GUI/MinimizeOnClose").toBool(); config()->get("GUI/MinimizeOnClose").toBool();
if (minimizeOnClose && !appExitCalled) if (minimizeOnClose && !appExitCalled)