Always invalidate db objects in "Database" tab in some refresh action. Active database is probably even indeterminable within a refresh and so a check for same db name fails and AVs follow because of non initialized nodes in ListTables. Fixes issue #1909.

This commit is contained in:
Ansgar Becker
2010-05-11 22:31:47 +00:00
parent d3711b5d62
commit dd40361d81

View File

@@ -6374,8 +6374,7 @@ begin
if csDestroying in ComponentState then
Exit;
// Reload objects in ListTables
if ActiveDatabase=Database then
InvalidateVT(ListTables, VTREE_NOTLOADED, False);
InvalidateVT(ListTables, VTREE_NOTLOADED, False);
// Reload objects for database tree
Node := DBtree.GetFirstChild(DBtree.GetFirst);
while Assigned(Node) do begin