summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-01-23 15:17:57 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-01-23 15:17:57 +0100
commita4a63cd740e30d81d89ca2aa7fcc76d69cd79aad (patch)
tree8b7356f9e858eedf11755602a393f917cdc3fbd0 /src
parentSTEP 1: (diff)
downloadrekonq-a4a63cd740e30d81d89ca2aa7fcc76d69cd79aad.tar.xz
Be sure you need to resolv url...
Diffstat (limited to 'src')
-rw-r--r--src/application.cpp18
1 files changed, 9 insertions, 9 deletions
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);
}