Skip to content

Commit 3cf9dac

Browse files
committed
Fix for 'Remove All entries from this domain' on history item
1 parent a3c73ca commit 3cf9dac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/windows/history/HistoryContentsWidget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ void HistoryContentsWidget::removeDomainEntries()
187187
return;
188188
}
189189

190-
const QString host(QUrl(domainItem->text()).host());
190+
const QString host(QUrl(domainItem->text()).host().remove(QRegExp("^www.")));
191191
QVector<quint64> entries;
192192

193193
for (int i = 0; i < m_model->rowCount(); ++i)
@@ -203,7 +203,7 @@ void HistoryContentsWidget::removeDomainEntries()
203203
{
204204
const QStandardItem *entryItem(groupItem->child(j, 0));
205205

206-
if (entryItem && host == QUrl(entryItem->text()).host())
206+
if (entryItem && host == QUrl(entryItem->text()).host().remove(QRegExp("^www.")))
207207
{
208208
entries.append(entryItem->data(IdentifierRole).toULongLong());
209209
}

0 commit comments

Comments
 (0)