summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikhil Marathe <nsm.nikhil@gmail.com>2010-05-24 17:12:54 +0530
committerNikhil Marathe <nsm.nikhil@gmail.com>2010-05-24 17:12:54 +0530
commitf8bc9310e0a22e75e9905b78a3d84fc28be5f2c2 (patch)
tree07ce624a9d40358f3da8155658b94314616f0395
parentrekonq 0.4.71 (diff)
downloadrekonq-f8bc9310e0a22e75e9905b78a3d84fc28be5f2c2.tar.xz
Restore stacked url bars to the right index when a tab is closed
BUG: 238644
-rw-r--r--src/mainview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 1c36adcf..932af009 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -512,6 +512,8 @@ void MainView::closeTab(int index, bool del)
UrlBar *urlbar = _widgetBar->urlBar(index);
_widgetBar->removeWidget(urlbar);
+ _widgetBar->setCurrentIndex(m_currentTabIndex);
+
if (del)
{
tab->deleteLater(); // tab is scheduled for deletion.