mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Make sure ValidateControls detects the grid as focused when its grid contextmenu pops up, which is not the case when it has 0 nodes, even with TreeOptions.SelectionOptions.RightclickSelect enabled. See https://www.heidisql.com/forum.php?t=26329
This commit is contained in:
@@ -6465,6 +6465,9 @@ const
|
||||
begin
|
||||
// Manipulate quick filter menuitems
|
||||
Grid := ActiveGrid;
|
||||
// Make sure ValidateControls detects the grid as focused, which is not the case when
|
||||
// it has 0 nodes, even with TreeOptions.SelectionOptions.RightclickSelect enabled
|
||||
Grid.SetFocus;
|
||||
CellFocused := Assigned(Grid.FocusedNode) and (Grid.FocusedColumn > NoColumn);
|
||||
InDataGrid := Grid = DataGrid;
|
||||
DataInsertValue.Enabled := CellFocused;
|
||||
|
||||
Reference in New Issue
Block a user