Skip to content

Commit

Permalink
Fix for 'Remove All entries from this domain' on history item
Browse files Browse the repository at this point in the history
  • Loading branch information
fnkkio committed Nov 12, 2019
1 parent a3c73ca commit 3cf9dac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/windows/history/HistoryContentsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<quint64> entries;

for (int i = 0; i < m_model->rowCount(); ++i)
Expand All @@ -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());
}
Expand Down

0 comments on commit 3cf9dac

Please sign in to comment.