mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Improved performance of searching in history model
- testing with QString::contains(QString) instead of QRegExp
This commit is contained in:
parent
b1b27a434e
commit
7037e562ae
@ -531,6 +531,6 @@ bool HistoryFilterModel::filterAcceptsRow(int sourceRow, const QModelIndex &sour
|
||||
return true;
|
||||
}
|
||||
|
||||
return (index.data(HistoryModel::UrlStringRole).toString().contains(filterRegExp()) ||
|
||||
index.data(HistoryModel::TitleRole).toString().contains(filterRegExp()));
|
||||
return (index.data(HistoryModel::UrlStringRole).toString().contains(m_pattern) ||
|
||||
index.data(HistoryModel::TitleRole).toString().contains(m_pattern));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user