mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Issue #136: fix crash now that ActiveGrid may return nil
This commit is contained in:
@ -6234,7 +6234,7 @@ begin
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
inDataTab := PageControlMain.ActivePage = tabData;
|
||||
inDataTab := Grid = DataGrid;
|
||||
inDataOrQueryTab := inDataTab or QueryTabActive;
|
||||
inDataOrQueryTabNotEmpty := inDataOrQueryTab and Assigned(Grid) and (Grid.RootNodeCount > 0);
|
||||
inGrid := Assigned(Grid) and (ActiveControl = Grid);
|
||||
|
Reference in New Issue
Block a user