diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-08-01 02:06:55 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-08-01 02:06:55 +0200 |
commit | 801c6ac411f787c8ad0febab9da2f1b20fc2c84e (patch) | |
tree | 5b0ef0b386a7f1c19a9231980d6296945b9b09b2 /src/application.cpp | |
parent | Fix tab in background feature (diff) | |
download | rekonq-801c6ac411f787c8ad0febab9da2f1b20fc2c84e.tar.xz |
Some string changes and various fixes
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 7 |
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; }; |