mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-14 01:56:36 +08:00
Revert r3053 - do not include database name when dropping table nodes in query editor. Seems more users including me are against that. Fixes issue #1749 and invalidates issue #1661.
This commit is contained in:
@ -4703,7 +4703,6 @@ var
|
||||
Text, ItemText: String;
|
||||
LoadText : Boolean;
|
||||
i: Integer;
|
||||
TreeNode: PVirtualNode;
|
||||
begin
|
||||
// dropping a tree node or listbox item into the query-memo
|
||||
ActiveQueryMemo.UndoList.AddGroupBreak;
|
||||
@ -4712,12 +4711,9 @@ begin
|
||||
LoadText := True;
|
||||
// Check for allowed controls as source has already
|
||||
// been performed in OnDragOver. So, only do typecasting here.
|
||||
if src = DBtree then begin
|
||||
TreeNode := DBtree.FocusedNode;
|
||||
Text := mask(DBtree.Text[TreeNode, 0]);
|
||||
if DBtree.GetNodeLevel(TreeNode) = 2 then
|
||||
Text := mask(DBtree.Text[TreeNode.Parent, 0]) + '.' + Text;
|
||||
end else if (src = ActiveQueryHelpers) and (ActiveQueryHelpers.ItemIndex > -1) then begin
|
||||
if src = DBtree then
|
||||
Text := mask(DBtree.Text[DBtree.FocusedNode, 0])
|
||||
else if (src = ActiveQueryHelpers) and (ActiveQueryHelpers.ItemIndex > -1) then begin
|
||||
// Snippets tab
|
||||
if tabsetQueryHelpers.TabIndex = 3 then begin
|
||||
QueryLoad( DirnameSnippets + ActiveQueryHelpers.Items[ActiveQueryHelpers.ItemIndex] + '.sql', False );
|
||||
|
Reference in New Issue
Block a user