Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2021-06-28 19:33:22 +0300
committerJulian Eisel <julian@blender.org>2021-06-28 19:38:53 +0300
commitafb17552e19c56daab6928ed1e2514b962770e19 (patch)
treea2c9b2d6f2f419437e1e9a41fdb7a695dd045b3a /source
parent37458798fa02c777fb89d762b0cb2c2eadb7ca87 (diff)
Fix T89449: File Browser preview image not responsive to click
Logic in the main `switch` for button handling was wrong and would execute for other button types than the new data-set row button type.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/interface/interface_handlers.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index f4536d95dc5..062e46e8ec2 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -7827,6 +7827,7 @@ static int ui_do_button(bContext *C, uiBlock *block, uiBut *but, const wmEvent *
case UI_BTYPE_CHECKBOX:
case UI_BTYPE_CHECKBOX_N:
case UI_BTYPE_ROW:
+ case UI_BTYPE_DATASETROW:
retval = ui_do_but_TOG(C, but, data, event);
break;
case UI_BTYPE_SCROLL:
@@ -7851,9 +7852,6 @@ static int ui_do_button(bContext *C, uiBlock *block, uiBut *but, const wmEvent *
case UI_BTYPE_LABEL:
case UI_BTYPE_IMAGE:
case UI_BTYPE_PROGRESS_BAR:
- case UI_BTYPE_DATASETROW:
- retval = ui_do_but_TOG(C, but, data, event);
- break;
case UI_BTYPE_NODE_SOCKET:
retval = ui_do_but_EXIT(C, but, data, event);
break;