From 0d324ed688eda0e1f172353d33ca33731b8f6764 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sat, 2 May 2009 02:32:34 +0200 Subject: Open Back/Forward tabs fixed --- src/mainview.cpp | 2 +- src/mainview.h | 4 ++-- src/mainwindow.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mainview.cpp b/src/mainview.cpp index 9dbf800b..d4edeb19 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -341,7 +341,7 @@ WebView *MainView::newWebView(Rekonq::OpenType type) switch(type) { case Rekonq::Default: - if (makeTabCurrent) + if (!m_makeBackTab) { setCurrentWidget(webView); // this method does NOT take ownership of webView urlBar->setFocus(); diff --git a/src/mainview.h b/src/mainview.h index 75242fef..372902dd 100644 --- a/src/mainview.h +++ b/src/mainview.h @@ -75,7 +75,7 @@ public: WebView *currentWebView() const { return webView(currentIndex()); } int webViewIndex(WebView *webView) const { return indexOf(webView); } KAction *recentlyClosedTabsAction() const { return m_recentlyClosedTabsAction; } - void setMakeTabCurrent( bool b) { makeTabCurrent = b; } + void setMakeBackTab(bool b) { m_makeBackTab = b; } /** * show and hide TabBar if user doesn't choose @@ -192,7 +192,7 @@ private: QString m_loadingGitPath; - bool makeTabCurrent; + bool m_makeBackTab; }; #endif diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 8426bb94..94e4dd11 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -352,7 +352,7 @@ void MainWindow::slotUpdateConfiguration() // ============== General ================== m_homePage = ReKonfig::homePage(); mainView()->showTabBar(); - mainView()->setMakeTabCurrent( ReKonfig::openTabsBack() ); + mainView()->setMakeBackTab( ReKonfig::openTabsBack() ); // =========== Fonts ============== QWebSettings *defaultSettings = QWebSettings::globalSettings(); -- cgit v1.2.1