mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-15 02:54:07 +08:00
On a blank server with 0 databases, the dbtree stayed empty after creating a database. DBtree.ResetNode seems to solve this, better as DBtree.ReInitChildren. Unfortunately that also collapses expanded nodes.
This commit is contained in:
@ -6119,7 +6119,7 @@ begin
|
|||||||
Connection.ClearDbObjects;
|
Connection.ClearDbObjects;
|
||||||
FreeAndNil(AllDatabases);
|
FreeAndNil(AllDatabases);
|
||||||
end;
|
end;
|
||||||
DBtree.ReinitChildren(DBTree.GetFirst, False);
|
DBtree.ResetNode(DBTree.GetFirst);
|
||||||
|
|
||||||
// Reselect active or new database if present. Could have been deleted or renamed.
|
// Reselect active or new database if present. Could have been deleted or renamed.
|
||||||
try
|
try
|
||||||
|
Reference in New Issue
Block a user