Fix T74585: Crash when scrolling viewport shading pop-up

Was dereferencing NULL pointer. Mistake from d5572eacc5.
This commit is contained in:
Julian Eisel 2020-03-10 11:21:00 +01:00
parent 9f48852ba4
commit dc3ff1db3f
Notes: blender-bot 2023-02-14 05:53:38 +01:00
Referenced by issue #74585, Crash when scrolling Viewport Shading pop-up
1 changed files with 1 additions and 1 deletions

View File

@ -9616,7 +9616,7 @@ static int ui_handle_menu_event(bContext *C,
but->active->cancel = true;
button_activate_exit(C, but, but->active, false, false);
}
WM_event_add_mousemove(but->active->window);
WM_event_add_mousemove(CTX_wm_window(C));
}
}
break;