From 24470a7cc3d9f47c703f701f15a54ffd66f045ee Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 21 Oct 2009 19:20:07 +0000 Subject: [PATCH] - Enabled "Start Minimized" and disabling systray integration at the same time no longer make GUI invisible. --- src/GUI.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/GUI.cpp b/src/GUI.cpp index 7bc68ac43..d48a7d20a 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -249,8 +249,9 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis QMainWindow::statusBar()->addPermanentWidget(upSpeedLbl); QMainWindow::statusBar()->addPermanentWidget(statusSep4); QMainWindow::statusBar()->addPermanentWidget(ratioLbl); - if(!settings.value(QString::fromUtf8("Preferences/General/StartMinimized"), false).toBool()) { - show(); + show(); + if(settings.value(QString::fromUtf8("Preferences/General/StartMinimized"), false).toBool()) { + this->setWindowState(Qt::WindowMinimized); } scrapeTimer = new QTimer(this); connect(scrapeTimer, SIGNAL(timeout()), this, SLOT(scrapeTrackers()));