mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user