1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

WebView: Don't clear history when navigatin from speed dial

QWebEngineView loses focus when clearing history, so when opening
new tab with speed dial and navigating to other page from location bar
it would give focus back to location bar.

BUG: 391228
FIXED-IN: 3.0.1
This commit is contained in:
David Rosca 2018-02-28 16:04:04 +01:00
parent 18f109c079
commit 84dd402de5
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -469,13 +469,6 @@ void WebView::slotUrlChanged(const QUrl &url)
emit titleChanged(title()); emit titleChanged(title());
m_backgroundActivity = oldActivity; m_backgroundActivity = oldActivity;
} }
// Don't save blank page / speed dial in tab history
if (!history()->canGoForward() && history()->backItems(1).size() == 1) {
const QString s = LocationBar::convertUrlToText(history()->backItem().url());
if (s.isEmpty())
history()->clear();
}
} }
void WebView::slotTitleChanged(const QString &title) void WebView::slotTitleChanged(const QString &title)