Skip to content
Browse files

Issue #935: fix crash when active main tab changes and data grid is d…

…isabled (due to disconnect).
  • Loading branch information
ansgarbecker committed Mar 9, 2020
1 parent 6462691 commit 95ef1ff003840f1c13bae072436106efd8e61ec8
Showing with 1 addition and 1 deletion.
  1. +1 −1 source/main.pas
@@ -5513,7 +5513,7 @@ procedure TMainForm.PageControlMainChange(Sender: TObject);
if tab = tabHost then PageControlHostChange(Sender)
else if tab = tabDatabase then ListTables.SetFocus
else if tab = tabData then begin
if DataGrid.CanFocus then
if DataGrid.CanFocus and DataGrid.Enabled then
end else if IsQueryTab(tab.PageIndex, True) then begin

0 comments on commit 95ef1ff

Please sign in to comment.
You can’t perform that action at this time.