From 8fb7445e2063526deb8d5d850f8170ff30d45b24 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 13 Jul 2010 20:50:54 +0000 Subject: [PATCH] Remember "display speed in title bar" on restart (closes #605134) --- src/GUI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GUI.cpp b/src/GUI.cpp index e4a52df87..ccbda4e43 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -80,10 +80,11 @@ using namespace libtorrent; *****************************************************/ // Constructor -GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), displaySpeedInTitle(false), force_exit(false) { +GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), force_exit(false) { setupUi(this); setWindowTitle(tr("qBittorrent %1", "e.g: qBittorrent v0.x").arg(QString::fromUtf8(VERSION))); + displaySpeedInTitle = Preferences::speedInTitleBar(); // Setting icons this->setWindowIcon(QIcon(QString::fromUtf8(":/Icons/skin/qbittorrent32.png"))); actionOpen->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/open.png")));