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:
mont29 2013-11-16 11:30:48 +01:00
parent 481a138144
commit d49498a461

@ -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;