summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-12-18 01:03:40 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-12-18 01:03:40 +0100
commitfe06c152442bb33c0e0ea021cbae85be875eb4fd (patch)
tree8e10ab1075b20ec7626fdff7b4ae3e5b68dfdb38 /src/mainwindow.cpp
parentJust some stupid changes. (diff)
downloadrekonq-fe06c152442bb33c0e0ea021cbae85be875eb4fd.tar.xz
Ronny's patch about selecting previous tab if active one is closed
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp6
1 files changed, 6 insertions, 0 deletions
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();