Fixed bug with calling CollectionChanged when sorting container children

This commit is contained in:
David Sparer
2016-09-20 09:34:22 -06:00
parent 20f527ae94
commit e64ebf06f1

View File

@@ -126,7 +126,7 @@ namespace mRemoteNG.Container
SortDirection = sortDirection
};
Children.Sort(connectionComparer);
RaiseCollectionChangedEvent(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Move, Children));
RaiseCollectionChangedEvent(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
}
public void SortRecursive(ListSortDirection sortDirection = ListSortDirection.Ascending)