From 801c6ac411f787c8ad0febab9da2f1b20fc2c84e Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sat, 1 Aug 2009 02:06:55 +0200 Subject: Some string changes and various fixes --- src/application.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/application.cpp') diff --git a/src/application.cpp b/src/application.cpp index 06e67218..ff52d935 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -283,8 +283,8 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type) // this should let rekonq to support the beautiful KDE web browsing shortcuts loadingUrl = KUriFilter::self()->filteredUri(loadingUrl); - WebView *webView=m_mainWindow->mainView()->currentWebView(); - + WebView *webView; + switch(type) { case Rekonq::SettingOpenTab: @@ -296,7 +296,8 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type) case Rekonq::BackgroundTab: webView = m_mainWindow->mainView()->newTab(false); break; - case Rekonq::CurrentTab: // nothing to do here.. just to save a warning!! + case Rekonq::CurrentTab: + webView = m_mainWindow->mainView()->currentWebView(); break; }; -- cgit v1.2.1