From d88be9aca4df18e64a54470cc870d3ebd52384d4 Mon Sep 17 00:00:00 2001 From: Sean Kaim Date: Fri, 2 Jun 2017 16:48:52 -0400 Subject: [PATCH] Quick Connect from ntf area icon displays warning warning occurs when clicking on a folder. Fixes #546 --- mRemoteV1/Tools/NotificationAreaIcon.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mRemoteV1/Tools/NotificationAreaIcon.cs b/mRemoteV1/Tools/NotificationAreaIcon.cs index da4b62c5..fa6927a9 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);