Update the title of the tab when closing the second view in the split-mode. Thanks to

Enrique Alonso for analysing the root-cause! 

CCMAIL: enrique_alonso@igluk.com

svn path=/trunk/KDE/kdebase/apps/; revision=1177952
This commit is contained in:
Peter Penz 2010-09-21 19:30:26 +00:00
parent 801e28d7d6
commit 53dbea61bc

View file

@ -1301,7 +1301,7 @@ void DolphinMainWindow::setActiveViewContainer(DolphinViewContainer* viewContain
const KUrl& url = m_activeViewContainer->url();
setUrlAsCaption(url);
if (m_viewTab.count() > 1 && m_viewTab[m_tabIndex].secondaryView != 0) {
if (m_viewTab.count() > 1) {
m_tabBar->setTabText(m_tabIndex, tabName(url));
m_tabBar->setTabIcon(m_tabIndex, KIcon(KMimeType::iconNameForUrl(url)));
}