From 1a2fdc259c58b844d8d23522abea69421004e1cd Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 4 Feb 2009 19:16:56 +0000 Subject: [PATCH] - BUGFIX: Fixed "hide top toolBar" feature --- Changelog | 3 +++ src/GUI.cpp | 12 +++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Changelog b/Changelog index 5aeb2df9f..27d08cba5 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,6 @@ +* Unknown - Christophe Dumez - v1.3.2 + - BUGFIX: Fixed "hide top toolBar" feature + * Mon Jan 26 2009 - Christophe Dumez - v1.3.1 - BUGFIX: Torrents paused due to an I/O error were displayed as queued - BUGFIX: qBittorrent now prints backtrace in terminal when segfaulting diff --git a/src/GUI.cpp b/src/GUI.cpp index be7ce1713..507f6172e 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -931,13 +931,11 @@ void GUI::configureSession(bool deleteOptions) { setWindowTitle(tr("qBittorrent %1", "e.g: qBittorrent v0.x").arg(QString::fromUtf8(VERSION))); } displaySpeedInTitle = new_displaySpeedInTitle; - if(options->isToolbarDisplayed() != toolBar->isVisible()) { - if(options->isToolbarDisplayed()) { - toolBar->setVisible(true); - toolBar->layout()->setSpacing(7); - } else { - toolBar->setVisible(false); - } + if(options->isToolbarDisplayed()) { + toolBar->setVisible(true); + toolBar->layout()->setSpacing(7); + } else { + toolBar->setVisible(false); } unsigned int new_refreshInterval = options->getRefreshInterval(); if(refreshInterval != new_refreshInterval) {