From 5938bc72b47aef6f751d2c868aba2035f6c86eee Mon Sep 17 00:00:00 2001 From: Sean Kaim Date: Tue, 5 Sep 2017 12:59:07 -0400 Subject: [PATCH] jenkins doesn't like this... --- mRemoteV1/UI/Controls/QuickConnectToolStrip.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mRemoteV1/UI/Controls/QuickConnectToolStrip.cs b/mRemoteV1/UI/Controls/QuickConnectToolStrip.cs index 41fb20b8c..79411bcc7 100644 --- a/mRemoteV1/UI/Controls/QuickConnectToolStrip.cs +++ b/mRemoteV1/UI/Controls/QuickConnectToolStrip.cs @@ -232,8 +232,8 @@ namespace mRemoteNG.UI.Controls private void ConnectionsMenuItem_MouseUp(object sender, MouseEventArgs e) { if (e.Button != MouseButtons.Left) return; - if (((ToolStripMenuItem)sender).Tag is ContainerInfo) return; - if (((ToolStripMenuItem)sender).Tag is ConnectionInfo tag) + var tag = ((ToolStripMenuItem)sender).Tag as ConnectionInfo; + if (tag != null) { ConnectionInitiator.OpenConnection(tag); }