[statusicon] don't allow there to be more repos syncing than there are repos

This commit is contained in:
Hylke Bons 2010-08-09 09:53:38 +01:00
parent 9c31c7f8e7
commit 76a26b84b3

View file

@ -298,6 +298,9 @@ namespace SparkleShare {
if (SyncingReposCount < 0)
SyncingReposCount = 0;
if (SyncingReposCount > SparkleUI.Repositories.Count)
SyncingReposCount = SparkleUI.Repositories.Count;
if (SyncingReposCount > 0)
SetSyncingState ();
else