diff options
author | kobewi <kobewi4e@gmail.com> | 2023-03-09 00:00:39 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2023-03-09 21:31:12 +0100 |
commit | 84a5a3d38e57b9694742791fb05d308b64b125d3 (patch) | |
tree | d3e39420f9c499966bcf840ce72ca340aca4ea5a /editor/filesystem_dock.cpp | |
parent | c1128e911ccd6f1e8c35646df804d894652a58f1 (diff) | |
download | redot-engine-84a5a3d38e57b9694742791fb05d308b64b125d3.tar.gz |
Select the newly duplicated file
Diffstat (limited to 'editor/filesystem_dock.cpp')
-rw-r--r-- | editor/filesystem_dock.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index e1924c7994..69717b2be3 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -1286,6 +1286,7 @@ void FileSystemDock::_try_duplicate_item(const FileOrFolder &p_item, const Strin EditorNode::get_singleton()->add_io_error(TTR("Cannot move a folder into itself.") + "\n" + old_path + "\n"); return; } + const_cast<FileSystemDock *>(this)->path = new_path; Ref<DirAccess> da = DirAccess::create(DirAccess::ACCESS_RESOURCES); |