diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2020-01-29 13:11:55 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2020-01-29 13:22:58 +0300 |
commit | 7c9b5523ff4c4f392d495d06eb9b8a0b2ca5da3f (patch) | |
tree | 806e0455990f1d36d715a1a07ca6006223995a25 /source/blender/editors/screen/screen_edit.c | |
parent | 3ee219b8452c0820c8fe1c1fae067397e1da9676 (diff) |
Fix T73482: Context Menu on any button is broken
What I removed here used to be needed in an earlier version of the
patch, to avoid use-after-frees. This is not the case anymore, so it
seems we can remove this.
Generally the context region code is very weak and inconsistent. If
things were done properly, the line I added shouldn't cause issues -
it's logically correct.
Also fixes T73475.
Diffstat (limited to 'source/blender/editors/screen/screen_edit.c')
-rw-r--r-- | source/blender/editors/screen/screen_edit.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/editors/screen/screen_edit.c b/source/blender/editors/screen/screen_edit.c index 95293a23c26..501c36286d0 100644 --- a/source/blender/editors/screen/screen_edit.c +++ b/source/blender/editors/screen/screen_edit.c @@ -558,9 +558,6 @@ void ED_region_exit(bContext *C, ARegion *ar) WM_msgbus_clear_by_owner(wm->message_bus, ar); CTX_wm_region_set(C, prevar); - if (CTX_wm_menu(C) == ar) { - CTX_wm_region_set(C, NULL); - } } void ED_area_exit(bContext *C, ScrArea *sa) |