mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Fix a similar problem as in previous commit - db and table nodes were not properly removed on disconnect. Probably fixes issue #1491.
This commit is contained in:
@@ -1571,11 +1571,9 @@ begin
|
||||
comboOnlyDBs.ItemIndex := 0
|
||||
else
|
||||
comboOnlyDBs.Text := '';
|
||||
// All db nodes must get collapsed to avoid auto initialization of table caches (along with AVs)
|
||||
menuTreeCollapseAllClick(Self);
|
||||
// Forces Tree.ReInitChildren to refetch database names
|
||||
FreeAndNil(AllDatabases);
|
||||
RefreshTree(False);
|
||||
|
||||
// Remove db and table nodes, force host node to initialize again
|
||||
DBtree.ResetNode(DBTree.GetFirst);
|
||||
|
||||
DBTree.Color := GetRegValue(REGNAME_TREEBACKGROUND, clWindow, SessionName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user