┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-04-13 19:18:54 +0000
committerPeter Penz <[email protected]>2008-04-13 19:18:54 +0000
commit9d394f7a4a84713a89ae34bb0716d2534029a514 (patch)
treeac60c3b537ca610672ad7ee695a6c2ecdeff0c50 /src
parent9d1a8d98ddee728adf8345aefffd9c27b356c876 (diff)
prevent flickering when switching between tabs having a split view
svn path=/trunk/KDE/kdebase/apps/; revision=796566
Diffstat (limited to 'src')
-rw-r--r--src/dolphinmainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index d19f8eb1d..74d93329c 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -675,19 +675,19 @@ void DolphinMainWindow::setActiveTab(int index)
// hide current tab content
m_viewTab[m_tabIndex].isPrimaryViewActive = m_viewTab[m_tabIndex].primaryView->isActive();
QSplitter* splitter = m_viewTab[m_tabIndex].splitter;
- m_centralWidgetLayout->removeWidget(splitter);
splitter->hide();
+ m_centralWidgetLayout->removeWidget(splitter);
// show active tab content
m_tabIndex = index;
ViewTab& viewTab = m_viewTab[index];
m_centralWidgetLayout->addWidget(viewTab.splitter);
- viewTab.splitter->show();
viewTab.primaryView->show();
if (viewTab.secondaryView != 0) {
viewTab.secondaryView->show();
}
+ viewTab.splitter->show();
setActiveViewContainer(viewTab.isPrimaryViewActive ? viewTab.primaryView :
viewTab.secondaryView);