diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-08-23 22:30:23 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-08-23 22:30:23 +0200 |
commit | 7d27ad56c1d65b97842d954f25ee22b3711ec05b (patch) | |
tree | 19530225943fbe93ec40bafee142384f56fc92ae /src/application.cpp | |
parent | Modified newTab function and splitted into two parts. (diff) | |
download | rekonq-7d27ad56c1d65b97842d954f25ee22b3711ec05b.tar.xz |
Fixed problems restoring Lionel's hack about focused (or not) new WebViews
Some fixing also on urlbar/tabwidget/webview focus.
It seems working well.. :)
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/application.cpp b/src/application.cpp index 81df7ffb..35d52a23 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -298,20 +298,18 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type) switch(type) { case Rekonq::SettingOpenTab: - webView = m_mainWindow->mainView()->newWebView(); + webView = m_mainWindow->mainView()->newWebView(!ReKonfig::openTabsBack()); if (!ReKonfig::openTabsBack()) { - m_mainWindow->mainView()->setCurrentWidget(webView); m_mainWindow->mainView()->urlBar()->setUrl(loadingUrl.prettyUrl()); } break; case Rekonq::NewCurrentTab: - webView = m_mainWindow->mainView()->newWebView(); - m_mainWindow->mainView()->setCurrentWidget(webView); + webView = m_mainWindow->mainView()->newWebView(true); m_mainWindow->mainView()->urlBar()->setUrl(loadingUrl.prettyUrl()); break; case Rekonq::NewBackTab: - webView = m_mainWindow->mainView()->newWebView(); + webView = m_mainWindow->mainView()->newWebView(false); break; case Rekonq::CurrentTab: webView = m_mainWindow->mainView()->currentWebView(); |