Skip to content

Commit

Permalink
Merge pull request #84218 from SaracenOne/naming_conflict_crash
Browse files Browse the repository at this point in the history
Fix crash on rename collision in thumbnail grid
  • Loading branch information
akien-mga committed Oct 31, 2023
2 parents cf16c69 + c640018 commit 6271f91
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion editor/filesystem_dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6271f91

Please sign in to comment.