diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-08-19 07:12:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-19 07:12:38 +0200 |
commit | 5ccf797c9c34c8cabdda3369eaf7a98d276a6094 (patch) | |
tree | 39644571385794187396aa9a42ea69d17e70511f /scene/gui/shortcut.cpp | |
parent | 31dfdcb69eb4d98a399243f5fc93b8e14b2e808a (diff) | |
parent | 9819be756297c69e0c6b314bef6d45b0bc5227c1 (diff) |
Merge pull request #51703 from YeldhamDev/compal_tweaks
Minor tweaks/fixes for the Command Palette
Diffstat (limited to 'scene/gui/shortcut.cpp')
-rw-r--r-- | scene/gui/shortcut.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/shortcut.cpp b/scene/gui/shortcut.cpp index c0aac6d91a..d0cb08724e 100644 --- a/scene/gui/shortcut.cpp +++ b/scene/gui/shortcut.cpp @@ -32,7 +32,7 @@ #include "core/os/keyboard.h" void Shortcut::set_event(const Ref<InputEvent> &p_event) { - ERR_FAIL_COND(Object::cast_to<InputEventShortcut>(*p_event)); + ERR_FAIL_COND_MSG(Object::cast_to<InputEventShortcut>(*p_event), "Cannot set a shortcut event to an instance of InputEventShortcut."); event = p_event; emit_changed(); } |