Fix [#37039] Resize lists by new grab handles puts file into unsaved state.

Simply do not enable undo for LISTBOX buttons (the same as ROUNDBOX & co). Many thanks to Campbell who did all the work here!
This commit is contained in:
Bastien Montagne 2013-10-11 12:50:19 +00:00
parent 31d492815e
commit 76c94972da

@ -2874,7 +2874,7 @@ static uiBut *ui_def_but(uiBlock *block, int type, int retval, const char *str,
} }
/* keep track of UI_interface.h */ /* keep track of UI_interface.h */
if (ELEM8(but->type, BLOCK, BUT, LABEL, PULLDOWN, ROUNDBOX, BUTM, SCROLL, SEPR)) {} if (ELEM9(but->type, BLOCK, BUT, LABEL, PULLDOWN, ROUNDBOX, LISTBOX, BUTM, SCROLL, SEPR)) {}
else if (but->type >= SEARCH_MENU) {} else if (but->type >= SEARCH_MENU) {}
else but->flag |= UI_BUT_UNDO; else but->flag |= UI_BUT_UNDO;