diff options
author | Julian Eisel <julian@blender.org> | 2021-11-05 16:56:22 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-11-05 16:57:26 +0300 |
commit | 4e09fd76bcabb602f1bd31c2bbd5dd2b09e4b64a (patch) | |
tree | cc62d791b8a8e50c4460cb567d52e399a7781e5d /source/blender/editors/space_spreadsheet/spreadsheet_dataset_draw.cc | |
parent | 35198606d514a0cdedaa906cf86258f8c45448af (diff) |
Cleanup (UI): Add/use type for operator context enum
Adds a `wmOperatorCallContext` typedef for the existing `WM_OP_XXX`
operator context enum. This adds type safety, allows the compiler to
produce better warnings and helps understanding what a variable is for.
Differential Revision: https://developer.blender.org/D13113
Reviewed by: Campbell Barton
Diffstat (limited to 'source/blender/editors/space_spreadsheet/spreadsheet_dataset_draw.cc')
-rw-r--r-- | source/blender/editors/space_spreadsheet/spreadsheet_dataset_draw.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_dataset_draw.cc b/source/blender/editors/space_spreadsheet/spreadsheet_dataset_draw.cc index b9a508d7764..6a04440afc7 100644 --- a/source/blender/editors/space_spreadsheet/spreadsheet_dataset_draw.cc +++ b/source/blender/editors/space_spreadsheet/spreadsheet_dataset_draw.cc @@ -219,7 +219,7 @@ void DatasetRegionDrawer::draw_dataset_row(const int indentation, uiBut *bt = uiDefIconTextButO(&block, UI_BTYPE_DATASETROW, "SPREADSHEET_OT_change_spreadsheet_data_source", - 0, + WM_OP_INVOKE_DEFAULT, icon, label, rect.xmin, |