Merge pull request #751 from GaborApatiNagy/CA-187932_2

CA-187932: Cancelled tasks are reported as errors in XenCenter
This commit is contained in:
Stephen Turner 2015-12-04 09:23:58 +00:00
commit 45dfd11dd1

View File

@ -456,7 +456,7 @@ namespace XenAdmin
: null);
}
int errors = ConnectionsManager.History.Count(a => a.IsCompleted && !a.Succeeded);
int errors = ConnectionsManager.History.Count(a => a.IsCompleted && !a.Succeeded && !((a is CancellingAction) && ((CancellingAction)a).Cancelled));
navigationPane.UpdateNotificationsButton(NotificationsSubMode.Events, errors);
if (eventsPage.Visible)