[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 ac8828e7a0
commit 75abe689cb

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