mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Fix crash after tabbing from the last node on "Database" tab in edit mode. Fixes issue #3526.
This commit is contained in:
@@ -5575,8 +5575,10 @@ var
|
||||
Obj: PDBObject;
|
||||
begin
|
||||
// Tables and views can be renamed, routines cannot
|
||||
Obj := Sender.GetNodeData(Node);
|
||||
Allowed := Obj.NodeType in [lntTable, lntView];
|
||||
if Assigned(Node) then begin
|
||||
Obj := Sender.GetNodeData(Node);
|
||||
Allowed := Obj.NodeType in [lntTable, lntView];
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user