diff --git a/mRemoteV1/Tools/NotificationAreaIcon.cs b/mRemoteV1/Tools/NotificationAreaIcon.cs index da4b62c58..fa6927a90 100644 --- a/mRemoteV1/Tools/NotificationAreaIcon.cs +++ b/mRemoteV1/Tools/NotificationAreaIcon.cs @@ -3,6 +3,7 @@ using System.Linq; using System.Windows.Forms; using mRemoteNG.App; using mRemoteNG.Connection; +using mRemoteNG.Container; using mRemoteNG.UI.Forms; @@ -115,7 +116,7 @@ namespace mRemoteNG.Tools private void ConMenItem_MouseUp(object sender, MouseEventArgs e) { if (e.Button != MouseButtons.Left) return; - if (!(((ToolStripMenuItem) sender).Tag is ConnectionInfo)) return; + if (((ToolStripMenuItem)sender).Tag is ContainerInfo) return; if (FrmMain.Visible == false) ShowForm(); _connectionInitiator.OpenConnection((ConnectionInfo) ((ToolStripMenuItem) sender).Tag);