summaryrefslogtreecommitdiffstats
path: root/editor/window_wrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/window_wrapper.cpp')
-rw-r--r--editor/window_wrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/window_wrapper.cpp b/editor/window_wrapper.cpp
index f0eba7b215..a5c862ffd6 100644
--- a/editor/window_wrapper.cpp
+++ b/editor/window_wrapper.cpp
@@ -59,7 +59,7 @@ class ShortcutBin : public Node {
return;
}
Window *grandparent_window = get_window()->get_parent_visible_window();
- ERR_FAIL_COND(!grandparent_window);
+ ERR_FAIL_NULL(grandparent_window);
if (Object::cast_to<InputEventKey>(p_event.ptr()) || Object::cast_to<InputEventShortcut>(p_event.ptr())) {
// HACK: Propagate the window input to the editor main window to handle global shortcuts.