summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-08-23 12:39:21 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-08-23 12:39:21 +0200
commitc30a6e73d97530ed22cafa89b59cf25cf93e02d1 (patch)
tree1b9f9ed0bffc5fefa36f172f9585cc3a06a3c4c4 /src/application.cpp
parentMerge commit 'megabigbug/Print' (diff)
downloadrekonq-c30a6e73d97530ed22cafa89b59cf25cf93e02d1.tar.xz
Modified newTab function and splitted into two parts.
There are still some regressions to be fixed: - open link in new tab is always without focus - urlbar is empty on new tab loading - mics..
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 9263113e..81df7ffb 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -298,18 +298,20 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type)
switch(type)
{
case Rekonq::SettingOpenTab:
- webView = m_mainWindow->mainView()->newTab(!ReKonfig::openTabsBack());
+ webView = m_mainWindow->mainView()->newWebView();
if (!ReKonfig::openTabsBack())
{
+ m_mainWindow->mainView()->setCurrentWidget(webView);
m_mainWindow->mainView()->urlBar()->setUrl(loadingUrl.prettyUrl());
}
break;
case Rekonq::NewCurrentTab:
- webView = m_mainWindow->mainView()->newTab(true);
+ webView = m_mainWindow->mainView()->newWebView();
+ m_mainWindow->mainView()->setCurrentWidget(webView);
m_mainWindow->mainView()->urlBar()->setUrl(loadingUrl.prettyUrl());
break;
case Rekonq::NewBackTab:
- webView = m_mainWindow->mainView()->newTab(false);
+ webView = m_mainWindow->mainView()->newWebView();
break;
case Rekonq::CurrentTab:
webView = m_mainWindow->mainView()->currentWebView();