Skip to content

Commit

Permalink
Properly refresh all rows when filter model changes
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed Sep 8, 2020
1 parent 47b972c commit facf150
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions qrenderdoc/Windows/LogView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ class LogFilterModel : public QAbstractProxyModel
void refresh()
{
emit beginResetModel();
m_VisibleRows.clear();
for(int i = 0; i < sourceModel()->rowCount(); i++)
if(isVisibleRow(i))
m_VisibleRows.push_back(i);
emit endResetModel();
}

Expand Down

0 comments on commit facf150

Please sign in to comment.