fix [#35434] Segmentation fault switching screen layout from python

This commit is contained in:
Campbell Barton 2013-05-20 05:06:52 +00:00
parent 289ca57e7a
commit 5cdddb12d9

@ -247,6 +247,9 @@ void wm_event_do_notifiers(bContext *C)
if (note->window == win) {
if (note->category == NC_SCREEN) {
if (note->data == ND_SCREENBROWSE) {
/* free popup handlers */
WM_event_remove_handlers(C, &win->modalhandlers);
ED_screen_set(C, note->reference); // XXX hrms, think this over!
if (G.debug & G_DEBUG_EVENTS)
printf("%s: screen set %p\n", __func__, note->reference);