From dd40361d81f12bd5f211aa043fa64573ee2d3ff1 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Tue, 11 May 2010 22:31:47 +0000 Subject: [PATCH] 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. --- source/main.pas | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/main.pas b/source/main.pas index ad8906cd..f06f64ae 100644 --- a/source/main.pas +++ b/source/main.pas @@ -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