From: Shaun Reich Date: Mon, 9 Mar 2009 02:31:41 +0000 (+0000) Subject: There is no point in setting the text of a tab, each time a tab is selected, the... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/9d7103f6ef50ddf7ec16d376996cd5612abc6168 There is no point in setting the text of a tab, each time a tab is selected, the only time we should have to do that is when we are using a split view. This also kind of hides the Qt 4.5 tab bug (a very ugly one) from "regular" users (who don't use the split view). svn path=/trunk/KDE/kdebase/apps/; revision=937116 --- diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index bfdf8dafd..df3974572 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -1006,7 +1006,7 @@ void DolphinMainWindow::setActiveViewContainer(DolphinViewContainer* viewContain const KUrl& url = m_activeViewContainer->url(); setCaption(url.fileName()); - if (m_viewTab.count() > 1) { + if (m_viewTab.count() > 1 && m_viewTab[m_tabIndex].secondaryView != 0) { m_tabBar->setTabText(m_tabIndex, tabName(url)); }