mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-26 03:58:45 +08:00
Fixed bug that would occasionally cause crashes when clicking
This commit is contained in:
@@ -420,8 +420,9 @@ namespace mRemoteNG.UI.Window
|
||||
try
|
||||
{
|
||||
if (e.ClickCount > 1) return;
|
||||
var clickedNode = (ConnectionInfo)e.Model;
|
||||
|
||||
var clickedNode = e.Model as ConnectionInfo;
|
||||
|
||||
if (clickedNode == null) return;
|
||||
if (clickedNode.GetTreeNodeType() != TreeNodeType.Connection && clickedNode.GetTreeNodeType() != TreeNodeType.PuttySession) return;
|
||||
if (Settings.Default.SingleClickOnConnectionOpensIt)
|
||||
ConnectionInitiator.OpenConnection(SelectedNode);
|
||||
|
||||
Reference in New Issue
Block a user