From 56781c80b78aa69d9e2d267cc284dbb85f46d54a Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Fri, 25 Aug 2023 19:47:36 +0200 Subject: [PATCH] Fix #111212: Crash in menu search when cursor is outside the window When the mouse cursor is outside the window, it's expected to not have an active area set in context on such screen level operators. Use the existing context query that handles this case. --- source/blender/editors/screen/screen_ops.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/screen/screen_ops.cc b/source/blender/editors/screen/screen_ops.cc index 89cf6a1f1b9..3962003226d 100644 --- a/source/blender/editors/screen/screen_ops.cc +++ b/source/blender/editors/screen/screen_ops.cc @@ -3240,7 +3240,7 @@ static int keyframe_jump_exec(bContext *C, wmOperator *op) static bool keyframe_jump_poll(bContext *C) { /* There is a keyframe jump operator specifically for the Graph Editor. */ - return ED_operator_screenactive_norender(C) && CTX_wm_area(C)->spacetype != SPACE_GRAPH; + return ED_operator_screenactive_norender(C) && ED_operator_graphedit_active(C); } static void SCREEN_OT_keyframe_jump(wmOperatorType *ot)