]> cloud.milkyroute.net Git - dolphin.git/commitdiff
There is no point in setting the text of a tab, each time a tab is selected, the...
authorShaun Reich <shaun.reich@kdemail.net>
Mon, 9 Mar 2009 02:31:41 +0000 (02:31 +0000)
committerShaun Reich <shaun.reich@kdemail.net>
Mon, 9 Mar 2009 02:31:41 +0000 (02:31 +0000)
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

src/dolphinmainwindow.cpp

index bfdf8dafd6d2359de54589cf9321c3abbb3b5cba..df39745728a2d628450f3a0e8a53e96cc4d0fc97 100644 (file)
@@ -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));
     }