From 3ae783e9cb9611dc99bf17f44c7a472790d883d5 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 4 Feb 2009 18:10:52 +0000 Subject: [PATCH] - Fixing 'hide top toobar feature' --- src/GUI.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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) {