Commit 225e00d0 authored by Caio Jordão Carvalho's avatar Caio Jordão Carvalho

Fix filter. Rating filter was considering rates greater than the selected one

parent eed01aa0
Pipeline #16264 passed with stage
in 14 minutes and 10 seconds
......@@ -58,7 +58,7 @@ bool ProjectSortProxyModel::filterAcceptsRowItself(int sourceRow, const QModelIn
if (m_searchRating > 0) {
// Column 7 contains the rating
QModelIndex indexTag = sourceModel()->index(sourceRow, 7, sourceParent);
if (sourceModel()->data(indexTag).toInt() < m_searchRating) {
if (sourceModel()->data(indexTag).toInt() != m_searchRating) {
return false;
}
}
......
Markdown is supported
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