Bugfix from own collection: Rename option in Outliner didn't handle an ESC

correctly. Button wasn't closed then.
This commit is contained in:
Ton Roosendaal 2005-12-07 19:59:26 +00:00
parent b02ff5f2a2
commit 2f0ae40979

@ -2505,8 +2505,12 @@ static void outliner_buttons(uiBlock *block, SpaceOops *soops, ListBase *lb)
// signal for button to open
addqueue(curarea->win, BUT_ACTIVATE, OL_NAMEBUTTON);
/* otherwise keeps open on ESC */
tselem->flag &= ~TSE_TEXTBUT;
}
if((tselem->flag & TSE_CLOSED)==0) outliner_buttons(block, soops, &te->subtree);
else
if((tselem->flag & TSE_CLOSED)==0) outliner_buttons(block, soops, &te->subtree);
}
}