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;
|
ObjNames: String;
|
||||||
begin
|
begin
|
||||||
// Add object names to additional stringlist
|
// Add object names to additional stringlist
|
||||||
if Assigned(FObjectNamesInSelectedDB) and DbObjectsCached(FDatabase) then begin
|
if Assigned(FObjectNamesInSelectedDB) then begin
|
||||||
|
if DbObjectsCached(FDatabase) then begin
|
||||||
Objects := GetDbObjects(FDatabase);
|
Objects := GetDbObjects(FDatabase);
|
||||||
for i:=0 to Objects.Count-1 do
|
for i:=0 to Objects.Count-1 do
|
||||||
ObjNames := ObjNames + Objects[i].Name + CRLF;
|
ObjNames := ObjNames + Objects[i].Name + CRLF;
|
||||||
|
end else
|
||||||
|
ObjNames := '';
|
||||||
if FObjectNamesInSelectedDB.Text <> ObjNames then
|
if FObjectNamesInSelectedDB.Text <> ObjNames then
|
||||||
FObjectNamesInSelectedDB.Text := ObjNames;
|
FObjectNamesInSelectedDB.Text := ObjNames;
|
||||||
end;
|
end;
|
||||||
|
Reference in New Issue
Block a user