diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-07-18 22:58:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-07-18 23:01:56 +0300 |
commit | 277cb12395a8c97ddf7c68cb559ef5aacd4827d9 (patch) | |
tree | e50608bd613fd43fee10f900d533bb35c2df0c88 | |
parent | 399c978a551dfd13504852aaa7d3a2ab874272fe (diff) |
Fix T48874: Nested pop-up didn't update its parent
-rw-r--r-- | source/blender/editors/interface/interface_regions.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_regions.c b/source/blender/editors/interface/interface_regions.c index d4205c50ddc..2caf52cf8dc 100644 --- a/source/blender/editors/interface/interface_regions.c +++ b/source/blender/editors/interface/interface_regions.c @@ -3331,6 +3331,11 @@ void UI_popup_block_close(bContext *C, wmWindow *win, uiBlock *block) if (win) { UI_popup_handlers_remove(&win->modalhandlers, block->handle); ui_popup_block_free(C, block->handle); + + /* In the case we have nested popups, closing one may need to redraw anorher, see: T48874 */ + for (ARegion *ar = win->screen->regionbase.first; ar; ar = ar->next) { + ED_region_tag_refresh_ui(ar); + } } } } |