fix [#37007] Save to file - increment number doesn't update background color of filename field if hovered

This commit is contained in:
Campbell Barton 2013-10-09 15:36:04 +00:00
parent 4109d5565f
commit 1255b1e82d
1 changed files with 5 additions and 0 deletions

View File

@ -611,6 +611,9 @@ static void ui_but_update_linklines(uiBlock *block, uiBut *oldbut, uiBut *newbut
static int ui_but_update_from_old_block(const bContext *C, uiBlock *block, uiBut **butpp)
{
/* flags from the buttons we want to refresh, may want to add more here... */
const int flag_copy = UI_BUT_REDALERT;
uiBlock *oldblock;
uiBut *oldbut, *but = *butpp;
int found = 0;
@ -667,6 +670,8 @@ static int ui_but_update_from_old_block(const bContext *C, uiBlock *block, uiBut
SWAP(void *, oldbut->func_argN, but->func_argN);
}
oldbut->flag = (oldbut->flag & ~flag_copy) | (but->flag & flag_copy);
/* copy hardmin for list rows to prevent 'sticking' highlight to mouse position
* when scrolling without moving mouse (see [#28432]) */
if (ELEM(oldbut->type, ROW, LISTROW))