summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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