From 84dd402de58e7a5fdccaa4a3b9fcb12da0664963 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Wed, 28 Feb 2018 16:04:04 +0100 Subject: [PATCH] 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 --- src/lib/webengine/webview.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/lib/webengine/webview.cpp b/src/lib/webengine/webview.cpp index 94bed96ec..66d43bf53 100644 --- a/src/lib/webengine/webview.cpp +++ b/src/lib/webengine/webview.cpp @@ -469,13 +469,6 @@ void WebView::slotUrlChanged(const QUrl &url) emit titleChanged(title()); 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)