From 41b6ae21cdaf2a74b1cdc4fb19bc968410b0eb9e Mon Sep 17 00:00:00 2001 From: David Rosca Date: Tue, 6 Feb 2018 17:37:10 +0100 Subject: [PATCH] WebTab: Return requestedUrl when url is empty --- src/lib/webtab/webtab.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/webtab/webtab.cpp b/src/lib/webtab/webtab.cpp index 564439678..be45eb3a2 100644 --- a/src/lib/webtab/webtab.cpp +++ b/src/lib/webtab/webtab.cpp @@ -257,6 +257,9 @@ void WebTab::showSearchToolBar() QUrl WebTab::url() const { if (isRestored()) { + if (m_webView->url().isEmpty() && m_webView->isLoading()) { + return m_webView->page()->requestedUrl(); + } return m_webView->url(); } else {