diff options
Diffstat (limited to 'editor/rename_dialog.cpp')
-rw-r--r-- | editor/rename_dialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/rename_dialog.cpp b/editor/rename_dialog.cpp index 9fca334e7c..45c437b5f3 100644 --- a/editor/rename_dialog.cpp +++ b/editor/rename_dialog.cpp @@ -473,7 +473,7 @@ void RenameDialog::_error_handler(void *p_self, const char *p_func, const char * String source_file = String::utf8(p_file); // Only show first error that is related to "regex" - if (self->has_errors || source_file.find("regex") < 0) { + if (self->has_errors || !source_file.contains("regex")) { return; } |