From 05028c958ef869501d41b3dbb5ae095eef2cccde Mon Sep 17 00:00:00 2001 From: David Sparer Date: Wed, 28 Sep 2016 15:08:40 -0600 Subject: [PATCH] Fixed crash that would occur when double clicking inside a connection window after disconnecting --- mRemoteV1/UI/Window/ConnectionWindow.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/mRemoteV1/UI/Window/ConnectionWindow.cs b/mRemoteV1/UI/Window/ConnectionWindow.cs index 74930598b..7efa4990b 100644 --- a/mRemoteV1/UI/Window/ConnectionWindow.cs +++ b/mRemoteV1/UI/Window/ConnectionWindow.cs @@ -505,6 +505,7 @@ namespace mRemoteNG.UI.Window try { Crownwood.Magic.Controls.TabPage selectedTab = TabController.SelectedTab; + if (selectedTab == null) return; if (Settings.Default.ConfirmCloseConnection == (int)ConfirmCloseEnum.All) { DialogResult result = CTaskDialog.MessageBox(this, GeneralAppInfo.ProdName, string.Format(Language.strConfirmCloseConnectionMainInstruction, selectedTab.Title), "", "", "", Language.strCheckboxDoNotShowThisMessageAgain, ETaskDialogButtons.YesNo, ESysIcons.Question, ESysIcons.Question);