From 0a3bb0cfcd6d32bfd8c10e02a07cd3be950cad58 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 21 Nov 2007 20:17:01 +0000 Subject: [PATCH] - BUGFIX: title bar is now reset when "Display speed in title" is disabled --- src/GUI.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/GUI.cpp b/src/GUI.cpp index 0867deae5..1bea5b981 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -791,7 +791,12 @@ void GUI::processDownloadedFiles(QString path, QString url) { void GUI::configureSession(bool deleteOptions) { qDebug("Configuring session"); // General - displaySpeedInTitle = options->speedInTitleBar(); + bool new_displaySpeedInTitle = options->speedInTitleBar(); + if(!new_displaySpeedInTitle && new_displaySpeedInTitle != displaySpeedInTitle) { + // Reset title + setWindowTitle(tr("qBittorrent %1", "e.g: qBittorrent v0.x").arg(QString::fromUtf8(VERSION))); + } + displaySpeedInTitle = new_displaySpeedInTitle; unsigned int new_refreshInterval = options->getRefreshInterval(); if(refreshInterval != new_refreshInterval) { refreshInterval = new_refreshInterval;