mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31:21 +00:00
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: peter.penz@gmx.at svn path=/trunk/KDE/kdebase/apps/; revision=839877
This commit is contained in:
parent
82a5b8075a
commit
c167ffbb4f
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue