┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorShaun Reich <[email protected]>2009-03-09 02:31:41 +0000
committerShaun Reich <[email protected]>2009-03-09 02:31:41 +0000
commit9d7103f6ef50ddf7ec16d376996cd5612abc6168 (patch)
tree840b1c2e5e9ded14b31ba9cb8e0bd3a409f3adaa /src/dolphinmainwindow.cpp
parent57515028fa599cced59f449c40afdd675ec95a0b (diff)
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
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
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));
}