Do not raise, just put a log info when previously focused db or table is gone after refreshing. This is a normal case when db or table was deleted from outside or via query. Fixes issue #2059.

This commit is contained in:
Ansgar Becker
2010-07-01 22:03:29 +00:00
parent 63a69de637
commit f8b5924d97

View File

@ -5310,7 +5310,7 @@ begin
DBTree.FocusedNode := snode;
exit;
end;
raise Exception.Create('Table node ' + Text + ' not found in tree.');
LogSQL('Table node ' + Text + ' not found in tree.', lcError);
end;
@ -5328,7 +5328,7 @@ begin
if (not Assigned(f)) or (f.Parent <> n) then
SelectNode(DBtree, n);
end else
raise Exception.Create('Database node ' + db + ' not found in tree.');
LogSQL('Database node ' + db + ' not found in tree.', lcError);
end;