summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-24 16:57:40 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-24 16:57:40 +0200
commitb2d0924c2bd201c8ec6e0c40e24f673fe6673a73 (patch)
tree0a7511cdf86b683a8c244425733532816f6112bf /src/mainview.cpp
parentMerge commit 'refs/merge-requests/2274' of git://gitorious.org/rekonq/mainlin... (diff)
parentRestore stacked url bars to the right index when a tab is closed (diff)
downloadrekonq-b2d0924c2bd201c8ec6e0c40e24f673fe6673a73.tar.xz
Merge commit 'refs/merge-requests/2275' of git://gitorious.org/rekonq/mainline into m2275
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 01f0e1a4..b7ad7543 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.