diff --git a/mRemoteV1/UI/Window/ConnectionTreeWindow.cs b/mRemoteV1/UI/Window/ConnectionTreeWindow.cs index b980d6369..f5babf292 100644 --- a/mRemoteV1/UI/Window/ConnectionTreeWindow.cs +++ b/mRemoteV1/UI/Window/ConnectionTreeWindow.cs @@ -469,7 +469,7 @@ namespace mRemoteNG.UI.Window case NotifyCollectionChangedAction.Add: var childList = senderAsContainerInfo?.Children; ConnectionInfo otherChild = null; - if (childList?.Count > 0) + if (childList?.Count > 1) try { otherChild = childList.First(child => !args.NewItems.Contains(child)); } catch { } RefreshTreeObject(otherChild ?? senderAsContainerInfo); break;