diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index 49329815..e21a53b1 100644 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -3,6 +3,7 @@ Fixed issue MR-514 - Window Proxy test failed without close button Fixed issue MR-521 - Right-Clicking in "Sessions" panel crashes mRemoteNG Fixed issue MR-525 - Could not start on windows 7 64bit + Fixed issue MR-535 - SQL error saving Connections Fixed issue MR-538 - RDP loses connection when hiding config or connections pane Made minor improvements to the port scan functionality. diff --git a/mRemoteV1/Config/Config.Connections.Load.vb b/mRemoteV1/Config/Config.Connections.Load.vb index c657215a..17aa2400 100644 --- a/mRemoteV1/Config/Config.Connections.Load.vb +++ b/mRemoteV1/Config/Config.Connections.Load.vb @@ -396,7 +396,10 @@ Namespace Config tNode.SelectedImageIndex = Images.Enums.TreeImage.Container End If - If sqlRd.Item("ParentID") <> 0 Then + Dim parentId = sqlRd.Item("ParentID").ToString().Trim() + If String.IsNullOrEmpty(parentId) Or parentId = "0" Then + baseNode.Nodes.Add(tNode) + Else Dim pNode As TreeNode = Tree.Node.GetNodeFromConstantID(sqlRd.Item("ParentID")) If pNode IsNot Nothing Then @@ -410,8 +413,6 @@ Namespace Config Else baseNode.Nodes.Add(tNode) End If - Else - baseNode.Nodes.Add(tNode) End If 'AddNodesFromSQL(tNode) diff --git a/mRemoteV1/Config/Config.Connections.Save.vb b/mRemoteV1/Config/Config.Connections.Save.vb index 8c968252..24e33fbf 100644 --- a/mRemoteV1/Config/Config.Connections.Save.vb +++ b/mRemoteV1/Config/Config.Connections.Save.vb @@ -460,7 +460,7 @@ Namespace Config End If End If - _sqlQuery.CommandText &= _currentNodeIndex & "," & _parentConstantId & "," & .ConstantID & ",'" & Tools.Misc.DBDate(Now) & "')" + _sqlQuery.CommandText &= _currentNodeIndex & ",'" & _parentConstantId & "','" & .ConstantID & "','" & Tools.Misc.DBDate(Now) & "')" End With End Sub #End Region diff --git a/mRemoteV1/Help/SQLScript.txt b/mRemoteV1/Help/SQLScript.txt index 710884a1..a7059956 100644 --- a/mRemoteV1/Help/SQLScript.txt +++ b/mRemoteV1/Help/SQLScript.txt @@ -118,7 +118,11 @@ CREATE TABLE [dbo].[tblCons] ( [InheritRDGatewayUseConnectionCredentials] [bit] NOT NULL , [InheritRDGatewayUsername] [bit] NOT NULL , [InheritRDGatewayPassword] [bit] NOT NULL , - [InheritRDGatewayDomain] [bit] NOT NULL + [InheritRDGatewayDomain] [bit] NOT NULL , + [LoadBalanceInfo] [varchar] (1024) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , + [AutomaticResize] [bit] NOT NULL DEFAULT 1 , + [InheritLoadBalanceInfo] [bit] NOT NULL DEFAULT 0 , + [InheritAutomaticResize] [bit] NOT NULL DEFAULT 0 ) ON [PRIMARY] GO @@ -131,7 +135,7 @@ CREATE TABLE [dbo].[tblRoot] ( GO CREATE TABLE [dbo].[tblUpdate] ( - [LastUpdate] [datetime] NULL + [LastUpdate] [datetime] NULL ) ON [PRIMARY] GO