From f8bc9310e0a22e75e9905b78a3d84fc28be5f2c2 Mon Sep 17 00:00:00 2001 From: Nikhil Marathe Date: Mon, 24 May 2010 17:12:54 +0530 Subject: Restore stacked url bars to the right index when a tab is closed BUG: 238644 --- src/mainview.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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. -- cgit v1.2.1