mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Fix AV after unsuccessful table renaming.
This commit is contained in:
@@ -3304,10 +3304,14 @@ begin
|
||||
ShowDBProperties(self);
|
||||
// re-select same item
|
||||
for i:=0 to ListTables.Items.Count-1 do
|
||||
begin
|
||||
if ListTables.Items[i].Caption = S then
|
||||
begin
|
||||
ListTables.Selected := ListTables.Items[i];
|
||||
ListTables.Items[i].Focused := True;
|
||||
break;
|
||||
ListTables.Selected := ListTables.Items[i];
|
||||
ListTables.Items[i].Focused := true;
|
||||
end;
|
||||
end;
|
||||
// Important! Otherwise OnEdited refreshes list too:
|
||||
abort;
|
||||
end;
|
||||
|
||||
Reference in New Issue
Block a user