summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorDomrachev Alexandr <alexandr.domrachev@gmail.com>2009-09-13 21:52:45 +0400
committerDomrachev Alexandr <alexandr.domrachev@gmail.com>2009-09-13 21:52:45 +0400
commit15fa02f9fe0c2043ba229b7a8e265e8b74dd1410 (patch)
tree38564f66fe23ddba40aff62a91466c3d5bf577cc /src/application.cpp
parentBugfix: when trying to open link in new tab & network request fails (no (diff)
downloadrekonq-15fa02f9fe0c2043ba229b7a8e265e8b74dd1410.tar.xz
Open links in new tab located near currently active tab
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/application.cpp b/src/application.cpp
index ab4b3edf..4c819aba 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -355,7 +355,8 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type)
switch(type)
{
case Rekonq::SettingOpenTab:
- webView = w->mainView()->newWebView(!ReKonfig::openTabsBack());
+ webView = w->mainView()->newWebView(!ReKonfig::openTabsBack(),
+ ReKonfig::openTabsNearCurrent());
if (!ReKonfig::openTabsBack())
{
w->mainView()->urlBar()->setUrl(loadingUrl.prettyUrl());
@@ -366,7 +367,7 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type)
w->mainView()->urlBar()->setUrl(loadingUrl.prettyUrl());
break;
case Rekonq::NewBackTab:
- webView = w->mainView()->newWebView(false);
+ webView = w->mainView()->newWebView(false, ReKonfig::openTabsNearCurrent());
break;
case Rekonq::NewWindow:
case Rekonq::CurrentTab: