UI Nits: Stop unhiding the sidebar

.. when switching views. It seemed like a good idea at the
time, but now it is really irritating. If I want the sidebar to
be shown I'll select it thanks.
This commit is contained in:
Mark Liversedge
2013-03-02 23:00:32 +00:00
parent dbd21d35e4
commit eae1e2183d

View File

@@ -1611,13 +1611,13 @@ MainWindow::selectAnalysis()
views->setCurrentWidget(blankStateAnalysisPage);
} else {
masterControls->setVisible(true);
toolBox->show();
//toolBox->show();
#ifndef Q_OS_MAC
side->setEnabled(true);
#else
scopebar->setEnabledHideButton(true);
#endif
this->showSidebar(true);
//this->showSidebar(true);
masterControls->setCurrentIndex(0);
views->setCurrentIndex(0);
analWindow->selected(); // tell it!
@@ -1654,13 +1654,13 @@ MainWindow::selectTrain()
views->setCurrentWidget(blankStateTrainPage);
} else {
masterControls->setVisible(true);
toolBox->show();
//toolBox->show();
#ifndef Q_OS_MAC
side->setEnabled(true);
#else
scopebar->setEnabledHideButton(true);
#endif
this->showSidebar(true);
//this->showSidebar(true);
masterControls->setCurrentIndex(1);
views->setCurrentIndex(1);
trainWindow->selected(); // tell it!
@@ -1695,13 +1695,13 @@ MainWindow::selectDiary()
views->setCurrentWidget(blankStateDiaryPage);
} else {
masterControls->setVisible(true);
toolBox->show();
//toolBox->show();
#ifndef Q_OS_MAC
side->setEnabled(true);
#else
scopebar->setEnabledHideButton(true);
#endif
this->showSidebar(true);
//this->showSidebar(true);
masterControls->setCurrentIndex(2);
views->setCurrentIndex(2);
diaryWindow->selected(); // tell it!
@@ -1734,13 +1734,13 @@ MainWindow::selectHome()
views->setCurrentWidget(blankStateHomePage);
} else {
masterControls->setVisible(true);
toolBox->show();
//toolBox->show();
#ifndef Q_OS_MAC
side->setEnabled(true);
#else
scopebar->setEnabledHideButton(true);
#endif
this->showSidebar(true);
//this->showSidebar(true);
masterControls->setCurrentIndex(3);
views->setCurrentIndex(3);
homeWindow->selected(); // tell it!