diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp index f57e9cb5f842..4eb41ca884e9 100644 --- a/editor/connections_dialog.cpp +++ b/editor/connections_dialog.cpp @@ -282,7 +282,7 @@ List ConnectDialog::_filter_method_list(const List &p_me List ret; for (const MethodInfo &mi : p_methods) { - if (!p_search_string.is_empty() && !mi.name.contains(p_search_string)) { + if (!p_search_string.is_empty() && mi.name.findn(p_search_string) == -1) { continue; }