mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Try to fix another crash in DBtreeFocusChanged (FActiveObjectGroup := ParentDBObj.GroupType)
This commit is contained in:
@ -9942,6 +9942,7 @@ end;
|
||||
constructor TDBObject.Create(OwnerConnection: TDBConnection);
|
||||
begin
|
||||
NodeType := lntNone;
|
||||
GroupType := lntNone;
|
||||
Name := '';
|
||||
Database := '';
|
||||
Schema := '';
|
||||
|
@ -9562,7 +9562,7 @@ begin
|
||||
DBObj.WasSelected := True;
|
||||
FActiveDbObj := TDBObject.Create(DBObj.Connection);
|
||||
FActiveDbObj.Assign(DBObj^);
|
||||
if Assigned(Node.Parent) then
|
||||
if Assigned(Node.Parent) and (DBtree.GetNodeLevel(Node) > 0) then
|
||||
ParentDBObj := Sender.GetNodeData(Node.Parent);
|
||||
|
||||
case FActiveDbObj.NodeType of
|
||||
|
Reference in New Issue
Block a user