Skip to content

Commit

Permalink
Ensure limit is enforced in SyncthingRecentChangesModel::setMaxRows()
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Aug 28, 2024
1 parent 9072471 commit 53b6d80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions syncthingmodel/syncthingrecentchangesmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ void SyncthingRecentChangesModel::handleForkAwesomeIconsChanged()
void SyncthingRecentChangesModel::setMaxRows(int maxRows)
{
m_maxRows = maxRows < 0 ? std::numeric_limits<int>::max() : maxRows;
ensureWithinLimit();
}

void SyncthingRecentChangesModel::ensureWithinLimit()
Expand Down

0 comments on commit 53b6d80

Please sign in to comment.