From e64ebf06f123399c002290715bbcc10b50ec114b Mon Sep 17 00:00:00 2001 From: David Sparer Date: Tue, 20 Sep 2016 09:34:22 -0600 Subject: [PATCH] Fixed bug with calling CollectionChanged when sorting container children --- mRemoteV1/Container/ContainerInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mRemoteV1/Container/ContainerInfo.cs b/mRemoteV1/Container/ContainerInfo.cs index 8f5b94c77..6626cda3e 100644 --- a/mRemoteV1/Container/ContainerInfo.cs +++ b/mRemoteV1/Container/ContainerInfo.cs @@ -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)