mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 20:50:20 +08:00
Try to fix refresh issue #2471.
This commit is contained in:
@ -7018,13 +7018,14 @@ begin
|
||||
|
||||
// ReInit tree population
|
||||
FTreeRefreshInProgress := True;
|
||||
DBtree.FocusedNode := nil;
|
||||
try
|
||||
if not OnlyDBNode then begin
|
||||
FocusNewObject.Connection.ClearAllDbObjects;
|
||||
FocusNewObject.Connection.RefreshAllDatabases;
|
||||
SessNode := GetRootNode(DBtree, FocusNewObject.Connection);
|
||||
if Assigned(SessNode) then
|
||||
DBtree.ReinitChildren(SessNode, False);
|
||||
DBtree.ResetNode(SessNode);
|
||||
end else begin
|
||||
FocusNewObject.Connection.ClearDbObjects(FocusNewObject.Database);
|
||||
DBNode := FindDbNode(DBtree, FocusNewObject.Database);
|
||||
|
Reference in New Issue
Block a user