Merge pull request #84218 from SaracenOne/naming_conflict_crash

Fix crash on rename collision in thumbnail grid
This commit is contained in:
Rémi Verschelde 2023-10-31 13:46:38 +01:00
commit 6271f91a8f
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -1790,7 +1790,9 @@ void FileSystemDock::_rename_operation_confirm() {
}
if (new_exist) {
EditorNode::get_singleton()->show_warning(TTR("A file or folder with this name already exists."));
ti->set_text(col_index, old_name);
if (ti) {
ti->set_text(col_index, old_name);
}
return;
}