summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-08-01 02:06:55 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-08-01 02:06:55 +0200
commit801c6ac411f787c8ad0febab9da2f1b20fc2c84e (patch)
tree5b0ef0b386a7f1c19a9231980d6296945b9b09b2 /src/application.cpp
parentFix tab in background feature (diff)
downloadrekonq-801c6ac411f787c8ad0febab9da2f1b20fc2c84e.tar.xz
Some string changes and various fixes
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp7
1 files changed, 4 insertions, 3 deletions
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;
};