From f94d733c627c648435772b8049acbb85deac477d Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Sat, 20 Jun 2015 23:28:40 +0300 Subject: [PATCH] Minimize to tray only if the relevant option is enabled. --- src/gui/mainwindow.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 5c56a74da..151f9b598 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -306,8 +306,11 @@ MainWindow::MainWindow(QWidget *parent) activateWindow(); raise(); } - else { - create(); + else if (pref->startMinimized()) { + if (pref->minimizeToTray()) + create(); + else + showMinimized(); } } else {