From a4a63cd740e30d81d89ca2aa7fcc76d69cd79aad Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sat, 23 Jan 2010 15:17:57 +0100 Subject: Be sure you need to resolv url... --- src/application.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/application.cpp') diff --git a/src/application.cpp b/src/application.cpp index 6684439c..e93e5b8e 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -285,15 +285,7 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type) } WebView *view = createView(type); - - loadingUrl = resolvUrl( loadingUrl.pathOrUrl() ); - - // we are sure of the url now, let's add it to history - // anyway we store here just http sites because local and ftp ones are - // added trough the protocol handler and the other are ignored - if( url.protocol() == QLatin1String("http") || url.protocol() == QLatin1String("https") ) - historyManager()->addHistoryEntry( loadingUrl.prettyUrl() ); - + // if (!ReKonfig::openTabsBack()) // { // w->mainView()->urlBar()->setUrl(loadingUrl.prettyUrl()); @@ -301,6 +293,14 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type) if (view) { + loadingUrl = resolvUrl( loadingUrl.pathOrUrl() ); + + // we are sure of the url now, let's add it to history + // anyway we store here just http sites because local and ftp ones are + // added trough the protocol handler and the other are ignored + if( url.protocol() == QLatin1String("http") || url.protocol() == QLatin1String("https") ) + historyManager()->addHistoryEntry( loadingUrl.prettyUrl() ); + view->setFocus(); view->load(loadingUrl); } -- cgit v1.2.1