summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-05-02 02:32:34 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-05-02 02:32:34 +0200
commit0d324ed688eda0e1f172353d33ca33731b8f6764 (patch)
tree228c42d016ef2a00fb17f40c0876b6d8850997aa
parentManaging user tab open settings. Step 2 (diff)
downloadrekonq-0d324ed688eda0e1f172353d33ca33731b8f6764.tar.xz
Open Back/Forward tabs fixed
-rw-r--r--src/mainview.cpp2
-rw-r--r--src/mainview.h4
-rw-r--r--src/mainwindow.cpp2
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();