┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorAlex Merry <[email protected]>2008-07-31 01:02:52 +0000
committerAlex Merry <[email protected]>2008-07-31 01:02:52 +0000
commitc167ffbb4f01a71817e7539364eb864dd2cf0a2e (patch)
tree1fe9fc2fdc942c120e725c970ae11ecc61c0342c /src/dolphinmainwindow.cpp
parent82a5b8075a5fcb169da0eb91b5a5b4f2afce3807 (diff)
We want to change the tab, not just the view.
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: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=839877
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 64d0496dd..76330d1d4 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -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.
- setActiveTab((index > 0) ? index - 1 : 1);
+ m_tabBar->setCurrentIndex((index > 0) ? index - 1 : 1);
}
// delete tab