mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-14 01:56:36 +08:00
Fix empty db name in query memo when doubleclicking db tree. See http://www.heidisql.com/forum.php?t=6588
This commit is contained in:
@ -4899,9 +4899,14 @@ begin
|
|||||||
// been performed in OnDragOver. So, only do typecasting here.
|
// been performed in OnDragOver. So, only do typecasting here.
|
||||||
if src = DBtree then begin
|
if src = DBtree then begin
|
||||||
// Insert table or database name. If a table is dropped and Shift is pressed, prepend the db name.
|
// Insert table or database name. If a table is dropped and Shift is pressed, prepend the db name.
|
||||||
Text := mask(ActiveDbObj.Name);
|
case ActiveDbObj.NodeType of
|
||||||
if (ActiveDbObj.NodeType in [lntTable..lntEvent]) and ShiftPressed then
|
lntDb: Text := mask(ActiveDbObj.Database);
|
||||||
Text := mask(ActiveDbObj.Database) + '.' + Text;
|
lntTable..lntEvent: begin
|
||||||
|
if ShiftPressed then
|
||||||
|
Text := mask(ActiveDbObj.Database) + '.';
|
||||||
|
Text := Text + mask(ActiveDbObj.Name);
|
||||||
|
end;
|
||||||
|
end;
|
||||||
end else if src = Tree then begin
|
end else if src = Tree then begin
|
||||||
if (Tree.GetNodeLevel(Tree.FocusedNode) = 1) and Assigned(Tree.FocusedNode) then begin
|
if (Tree.GetNodeLevel(Tree.FocusedNode) = 1) and Assigned(Tree.FocusedNode) then begin
|
||||||
case Tree.FocusedNode.Parent.Index of
|
case Tree.FocusedNode.Parent.Index of
|
||||||
|
Reference in New Issue
Block a user