Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_event_system.c
| Context not available. | |||||
| /* Clear the tool-tip whenever a key binding is handled, without this tool-tips | /* Clear the tool-tip whenever a key binding is handled, without this tool-tips | ||||
| * are kept when a modal operators starts (annoying but otherwise harmless). */ | * are kept when a modal operators starts (annoying but otherwise harmless). */ | ||||
| if (action & WM_HANDLER_BREAK) { | if (action & WM_HANDLER_BREAK) { | ||||
| WM_tooltip_clear(C, CTX_wm_window(C)); | /* Fix crash when no window was assigned to wm */ | ||||
| if (CTX_wm_window(C)) { | |||||
| WM_tooltip_clear(C, CTX_wm_window(C)); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| else if (handler_base->type == WM_HANDLER_TYPE_UI) { | else if (handler_base->type == WM_HANDLER_TYPE_UI) { | ||||
| Context not available. | |||||