jenkins doesn't like this...

This commit is contained in:
Sean Kaim
2017-09-05 12:59:07 -04:00
parent 11adbed079
commit 5938bc72b4

View File

@@ -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);
}