mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Roll back parts of r4681 for getting the selected table into the trigger name, as this broke keeping the data tab active when switching tables. See http://www.heidisql.com/forum.php?t=14399 . Instead, introduce and make use of MainForm.FocusedTables. Fixes issue #3477.
This commit is contained in:
@ -128,10 +128,11 @@ begin
|
||||
Raise Exception.Create(_('Trigger definition not found!'));
|
||||
end else begin
|
||||
editName.Text := '';
|
||||
if FocusedTables.Count > 0 then begin
|
||||
if MainForm.FocusedTables.Count > 0 then begin
|
||||
for i:=0 to comboTable.Items.Count-1 do begin
|
||||
if comboTable.Items[i] = FocusedTables[0].Name then begin
|
||||
if comboTable.Items[i] = MainForm.FocusedTables[0].Name then begin
|
||||
comboTable.ItemIndex := i;
|
||||
comboChange(comboTable);
|
||||
Break;
|
||||
end;
|
||||
end;
|
||||
|
Reference in New Issue
Block a user