interface: clear red-alert flag when editing a button, confuses and makes it seem...
authorCampbell Barton <ideasman42@gmail.com>
Thu, 2 May 2013 04:30:05 +0000 (04:30 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 2 May 2013 04:30:05 +0000 (04:30 +0000)
source/blender/editors/interface/interface_handlers.c

index 63d2594f350ec420d5238bbd79b5a31bc3705ac7..bd3ded01780cd959b6016af40ce70aacb37da45e 100644 (file)
@@ -2034,7 +2034,10 @@ static void ui_textedit_begin(bContext *C, uiBut *but, uiHandleButtonData *data)
                data->searchbox = ui_searchbox_create(C, data->region, but);
                ui_searchbox_update(C, data->searchbox, but, true); /* true = reset */
        }
-       
+
+       /* reset alert flag (avoid confusion, will refresh on exit) */
+       but->flag &= ~UI_BUT_REDALERT;
+
        ui_check_but(but);
        
        WM_cursor_modal(CTX_wm_window(C), BC_TEXTEDITCURSOR);