From 0b874d9c423d0e42db0796bacec0195572da2a20 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 22 Jan 2011 19:39:43 +0000 Subject: [PATCH] Make sure the properties panel is initially hidden --- src/properties/propertieswidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/properties/propertieswidget.cpp b/src/properties/propertieswidget.cpp index 6e935f750..e8f6c0175 100644 --- a/src/properties/propertieswidget.cpp +++ b/src/properties/propertieswidget.cpp @@ -283,11 +283,11 @@ void PropertiesWidget::readSettings() { QSplitter *hSplitter = static_cast(parentWidget()); hSplitter->setSizes(slideSizes); } + const int current_tab = settings.value("TorrentProperties/CurrentTab", -1).toInt(); + m_tabBar->setCurrentIndex(current_tab); if(!settings.value("TorrentProperties/Visible", false).toBool()) { setVisibility(false); } - const int current_tab = settings.value("TorrentProperties/CurrentTab", PropTabBar::MAIN_TAB).toInt(); - m_tabBar->setCurrentIndex(current_tab); } void PropertiesWidget::saveSettings() {