diff --git a/editor/gui/editor_file_dialog.cpp b/editor/gui/editor_file_dialog.cpp index 2e86bfb3379..19110580298 100644 --- a/editor/gui/editor_file_dialog.cpp +++ b/editor/gui/editor_file_dialog.cpp @@ -127,7 +127,7 @@ void EditorFileDialog::_native_dialog_cb(bool p_ok, const Vector &p_file int filter_slice_count = flt.get_slice_count(","); for (int j = 0; j < filter_slice_count; j++) { String str = (flt.get_slice(",", j).strip_edges()); - if (f.match(str)) { + if (f.matchn(str)) { valid = true; break; } @@ -565,7 +565,7 @@ void EditorFileDialog::_action_pressed() { String flt = filters[i].get_slice(";", 0); for (int j = 0; j < flt.get_slice_count(","); j++) { String str = flt.get_slice(",", j).strip_edges(); - if (f.match(str)) { + if (f.matchn(str)) { valid = true; break; } @@ -584,7 +584,7 @@ void EditorFileDialog::_action_pressed() { int filterSliceCount = flt.get_slice_count(","); for (int j = 0; j < filterSliceCount; j++) { String str = (flt.get_slice(",", j).strip_edges()); - if (f.match(str)) { + if (f.matchn(str)) { valid = true; break; } diff --git a/scene/gui/file_dialog.cpp b/scene/gui/file_dialog.cpp index 4c797de7d34..5b566589ac0 100644 --- a/scene/gui/file_dialog.cpp +++ b/scene/gui/file_dialog.cpp @@ -153,7 +153,7 @@ void FileDialog::_native_dialog_cb_with_options(bool p_ok, const Vector int filter_slice_count = flt.get_slice_count(","); for (int j = 0; j < filter_slice_count; j++) { String str = (flt.get_slice(",", j).strip_edges()); - if (f.match(str)) { + if (f.matchn(str)) { valid = true; break; } @@ -488,7 +488,7 @@ void FileDialog::_action_pressed() { String flt = filters[i].get_slice(";", 0); for (int j = 0; j < flt.get_slice_count(","); j++) { String str = flt.get_slice(",", j).strip_edges(); - if (f.match(str)) { + if (f.matchn(str)) { valid = true; break; } @@ -507,7 +507,7 @@ void FileDialog::_action_pressed() { int filterSliceCount = flt.get_slice_count(","); for (int j = 0; j < filterSliceCount; j++) { String str = (flt.get_slice(",", j).strip_edges()); - if (f.match(str)) { + if (f.matchn(str)) { valid = true; break; }