mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Ignore a dangerous shortcut pressing when neither DBTree nor ListTables has focus. Fixes issue #1284
This commit is contained in:
@@ -2636,10 +2636,11 @@ begin
|
||||
// Add selected items/tables to helper list
|
||||
if ListTables.Focused then
|
||||
t := GetVTCaptions(ListTables, True)
|
||||
else begin
|
||||
else if DBTree.Focused then begin
|
||||
t := TWideStringList.Create;
|
||||
t.Add(SelectedTable.Text);
|
||||
end;
|
||||
end else
|
||||
Exit;
|
||||
if t.Count = 0 then
|
||||
Exit;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user