From c30a6e73d97530ed22cafa89b59cf25cf93e02d1 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 23 Aug 2009 12:39:21 +0200 Subject: 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.. --- src/application.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/application.cpp') 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(); -- cgit v1.2.1