diff --git a/editor/input_event_configuration_dialog.cpp b/editor/input_event_configuration_dialog.cpp index c62085843962..c2b8992b6978 100644 --- a/editor/input_event_configuration_dialog.cpp +++ b/editor/input_event_configuration_dialog.cpp @@ -547,7 +547,7 @@ void InputEventConfigurationDialog::_notification(int p_what) { void InputEventConfigurationDialog::popup_and_configure(const Ref &p_event) { if (p_event.is_valid()) { - _set_event(p_event, p_event->duplicate()); + _set_event(p_event->duplicate(), p_event); } else { // Clear Event _set_event(Ref(), Ref());