Commit d56851a5 authored by Billy's avatar Billy
Browse files

Removed unnecessary qstring allocation.

parent 6b247a8a
Pipeline #185660 passed with stage
in 59 seconds
......@@ -160,8 +160,8 @@ bool AppFilterModel::filterAcceptsRow(int source_row, const QModelIndex &source_
return m_showOnlyPreferredApps ? category == ApplicationItem::PreferredApplication : true;
}
return m_showOnlyPreferredApps ? category == ApplicationItem::PreferredApplication && appName.toLower().contains(m_filter)
: appName.toLower().contains(m_filter);
return m_showOnlyPreferredApps ? category == ApplicationItem::PreferredApplication && appName.contains(m_filter, Qt::CaseInsensitive)
: appName.contains(m_filter, Qt::CaseInsensitive);
}
bool AppFilterModel::lessThan(const QModelIndex &left, const QModelIndex &right) const
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment