summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-08-07 16:04:46 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-08-07 16:04:46 +0200
commit3e463e4dccf07fd252411ec7e9c8710f9d46974b (patch)
treeadd81eea4e33e5d9fc2fe419a71363074cac8005
parentKrazy issues, part 3 (diff)
downloadrekonq-3e463e4dccf07fd252411ec7e9c8710f9d46974b.tar.xz
Load url in the background urlbar fixes
-rw-r--r--src/application.cpp3
-rw-r--r--src/mainview.cpp1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 98b8d870..53393b7b 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -320,11 +320,10 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type)
break;
case Rekonq::CurrentTab:
webView = m_mainWindow->mainView()->currentWebView();
+ m_mainWindow->mainView()->currentUrlBar()->setUrl(loadingUrl.prettyUrl());
break;
};
- m_mainWindow->mainView()->currentUrlBar()->setUrl(loadingUrl.prettyUrl());
-
if (webView)
{
webView->setFocus();
diff --git a/src/mainview.cpp b/src/mainview.cpp
index f1026d84..5b08e17a 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -324,6 +324,7 @@ void MainView::slotCurrentChanged(int index)
emit setCurrentTitle(webView->title());
m_urlBars->setCurrentIndex(index);
+ currentUrlBar()->setUrl(webView->url());
emit showStatusBarMessage(webView->lastStatusBarText());
// set focus to the current webview