Fix T37442: Disabled uiList would "freeze" Blender when trying to drag-resize it.

For now, simply disable drag-resize for disabled uiLists!
This commit is contained in:
Bastien Montagne 2013-11-16 11:30:48 +01:00
parent 481a138144
commit d49498a461
Notes: blender-bot 2023-02-14 11:36:52 +01:00
Referenced by issue #37442, UI List can freeze blender
1 changed files with 1 additions and 1 deletions

View File

@ -6785,7 +6785,7 @@ static int ui_handle_list_event(bContext *C, const wmEvent *event, ARegion *ar)
is_over_dragbut = true;
}
if (is_over_dragbut && type == LEFTMOUSE && val == KM_PRESS) {
if (is_over_dragbut && type == LEFTMOUSE && val == KM_PRESS && !(but->flag & UI_BUT_DISABLED)) {
uiHandleButtonData *data;
int *size = (int *)but->poin;