Qt: Avoid invalidating the search filter, when it doesn't really change

This commit is contained in:
Luke Dashjr 2017-09-25 23:23:46 +00:00
parent b1f634242e
commit c407c61c5b

View File

@ -68,6 +68,7 @@ void TransactionFilterProxy::setDateRange(const QDateTime &from, const QDateTime
void TransactionFilterProxy::setSearchString(const QString &search_string) void TransactionFilterProxy::setSearchString(const QString &search_string)
{ {
if (m_search_string == search_string) return;
m_search_string = search_string; m_search_string = search_string;
invalidateFilter(); invalidateFilter();
} }