1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

WebTab: Return requestedUrl when url is empty

This commit is contained in:
David Rosca 2018-02-06 17:37:10 +01:00
parent 2283b41fdc
commit 41b6ae21cd
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -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 {