mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
prevent flickering when switching between tabs having a split view
svn path=/trunk/KDE/kdebase/apps/; revision=796566
This commit is contained in:
parent
9d1a8d98dd
commit
9d394f7a4a
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue