From 6582ebcf57401f0c6a566b98657c24d47fe0dfeb Mon Sep 17 00:00:00 2001 From: David Sparer Date: Mon, 3 Oct 2016 09:19:57 -0600 Subject: [PATCH] Resolved minor bug that would occassionaly create unnecessary exceptions --- mRemoteV1/UI/Window/ConnectionTreeWindow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mRemoteV1/UI/Window/ConnectionTreeWindow.cs b/mRemoteV1/UI/Window/ConnectionTreeWindow.cs index b980d636..f5babf29 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;