mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Minor: Reset highlighter's list of table names when selecting a new db and not having fetched its objects.
This commit is contained in:
@ -1141,10 +1141,13 @@ var
|
||||
ObjNames: String;
|
||||
begin
|
||||
// Add object names to additional stringlist
|
||||
if Assigned(FObjectNamesInSelectedDB) and DbObjectsCached(FDatabase) then begin
|
||||
Objects := GetDbObjects(FDatabase);
|
||||
for i:=0 to Objects.Count-1 do
|
||||
ObjNames := ObjNames + Objects[i].Name + CRLF;
|
||||
if Assigned(FObjectNamesInSelectedDB) then begin
|
||||
if DbObjectsCached(FDatabase) then begin
|
||||
Objects := GetDbObjects(FDatabase);
|
||||
for i:=0 to Objects.Count-1 do
|
||||
ObjNames := ObjNames + Objects[i].Name + CRLF;
|
||||
end else
|
||||
ObjNames := '';
|
||||
if FObjectNamesInSelectedDB.Text <> ObjNames then
|
||||
FObjectNamesInSelectedDB.Text := ObjNames;
|
||||
end;
|
||||
|
Reference in New Issue
Block a user