Fix T55348: Renaming a marker can't cancel

Regression in a14005c070
This commit is contained in:
2018-06-07 08:54:47 +02:00
parent a60d4f33c6
commit 2d2f23de10

View File

@@ -3970,7 +3970,9 @@ eAutoPropButsReturn uiTemplateOperatorPropertyButs(
#endif
/* set various special settings for buttons */
{
/* Only do this if we're not refreshing an existing UI. */
if (block->oldblock == NULL) {
const bool is_popup = (block->flag & UI_BLOCK_KEEP_OPEN) != 0;
uiBut *but;