tabEditor gets hidden if user selects server root node but active tab was not changed to "Host" in that case. Instead, for a millisecond tabData is visible which calls DataGrid.OnPaint and causes AVs as no table is selected any more. Fixes issue #1809.

This commit is contained in:
Ansgar Becker
2010-03-27 14:03:28 +00:00
parent 638ac7689d
commit 3ddf1cbd15

View File

@@ -3237,6 +3237,7 @@ procedure TMainForm.ShowHost;
begin
if (not DBTree.Dragging) and (
(PageControlMain.ActivePage = tabDatabase) or
(PageControlMain.ActivePage = tabEditor) or
(PageControlMain.ActivePage = tabData)
) then PageControlMain.ActivePage := tabHost;