From 3cf9dac0666ba5188ad52361394a0d17280e4c58 Mon Sep 17 00:00:00 2001 From: Stefan Comanescu Date: Tue, 12 Nov 2019 18:47:40 +0200 Subject: [PATCH] Fix for 'Remove All entries from this domain' on history item --- src/modules/windows/history/HistoryContentsWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/windows/history/HistoryContentsWidget.cpp b/src/modules/windows/history/HistoryContentsWidget.cpp index 48b88c07a3..58865210ed 100644 --- a/src/modules/windows/history/HistoryContentsWidget.cpp +++ b/src/modules/windows/history/HistoryContentsWidget.cpp @@ -187,7 +187,7 @@ void HistoryContentsWidget::removeDomainEntries() return; } - const QString host(QUrl(domainItem->text()).host()); + const QString host(QUrl(domainItem->text()).host().remove(QRegExp("^www."))); QVector entries; for (int i = 0; i < m_model->rowCount(); ++i) @@ -203,7 +203,7 @@ void HistoryContentsWidget::removeDomainEntries() { const QStandardItem *entryItem(groupItem->child(j, 0)); - if (entryItem && host == QUrl(entryItem->text()).host()) + if (entryItem && host == QUrl(entryItem->text()).host().remove(QRegExp("^www."))) { entries.append(entryItem->data(IdentifierRole).toULongLong()); }