From fe06c152442bb33c0e0ea021cbae85be875eb4fd Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 18 Dec 2009 01:03:40 +0100 Subject: Ronny's patch about selecting previous tab if active one is closed --- src/mainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index d413e217..b4174191 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -511,6 +511,12 @@ void MainWindow::updateConfiguration() // ============== General ================== m_view->updateTabBar(); + // ============== Tabs ================== + if (ReKonfig::closeTabSelectPrevious()) + m_view->tabBar()->setSelectionBehaviorOnRemove(QTabBar::SelectPreviousTab); + else + m_view->tabBar()->setSelectionBehaviorOnRemove(QTabBar::SelectRightTab); + // =========== Fonts ============== QWebSettings *defaultSettings = QWebSettings::globalSettings(); -- cgit v1.2.1