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:
Ansgar Becker
2013-12-26 05:38:27 +00:00
parent 35e809ae32
commit fd63e5e840
3 changed files with 8 additions and 19 deletions

View File

@ -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;