From 3ddf1cbd15efe6b7e555fe43bc1609c09c5d7994 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Sat, 27 Mar 2010 14:03:28 +0000 Subject: [PATCH] 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. --- source/main.pas | 1 + 1 file changed, 1 insertion(+) diff --git a/source/main.pas b/source/main.pas index 4f53655b..308a23a5 100644 --- a/source/main.pas +++ b/source/main.pas @@ -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;