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()); }