mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 14:12:51 +00:00
Fix crash on rename collision in thumbnail grid
This commit is contained in:
parent
5dc10b5aa5
commit
c640018b88
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user