]> cloud.milkyroute.net Git - dolphin.git/commitdiff
We want to change the tab, not just the view.
authorAlex Merry <kde@randomguy3.me.uk>
Thu, 31 Jul 2008 01:02:52 +0000 (01:02 +0000)
committerAlex Merry <kde@randomguy3.me.uk>
Thu, 31 Jul 2008 01:02:52 +0000 (01:02 +0000)
Fixes the issue: open three tabs.  Select the second one and close it.  Now right tab is active, but content for left tab is shown.

Will backport to 4.1.

CCMAIL: peter.penz@gmx.at

svn path=/trunk/KDE/kdebase/apps/; revision=839877

src/dolphinmainwindow.cpp

index 64d0496dd63ed97aa32317a9d1676f82c728004a..76330d1d4c8146fee242f58332f1027ebe21a77b 100644 (file)
@@ -700,7 +700,7 @@ void DolphinMainWindow::closeTab(int index)
     if (index == m_tabIndex) {
         // The tab that should be closed is the active tab. Activate the
         // previous tab before closing the tab.
     if (index == m_tabIndex) {
         // The tab that should be closed is the active tab. Activate the
         // previous tab before closing the tab.
-        setActiveTab((index > 0) ? index - 1 : 1);
+        m_tabBar->setCurrentIndex((index > 0) ? index - 1 : 1);
     }
 
     // delete tab
     }
 
     // delete tab