Skip to content
This repository has been archived by the owner on Feb 7, 2018. It is now read-only.

Commit

Permalink
Don't report more new statuses than really exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Nov 2, 2009
1 parent 801968e commit f59579c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qtwitter-app/src/statuslist.cpp
Expand Up @@ -263,7 +263,7 @@ int StatusList::newStatusesCount()
int count = d->newStatuses;
d->newStatuses = 0;

return count;
return qMin(count, size());
}

void StatusList::markAllAsRead()
Expand Down

0 comments on commit f59579c

Please sign in to comment.