diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-07-01 12:06:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-01 12:06:35 +0200 |
commit | d17eac735cc84abd9afd1e083df1a4e8a2c8e656 (patch) | |
tree | d006c3a5457edbde9e4f9016b48d0968d70e3ce5 /editor/filesystem_dock.cpp | |
parent | b62041d1f3b6428974d5be7ad9d378a445d432ac (diff) | |
parent | d2833d4f4d891b6a0ee32a04f9d32a410b998b93 (diff) |
Merge pull request #29815 from NilsIrl/plus_file_1
Replace ` + "/" + ` with `String::file_add()`
Diffstat (limited to 'editor/filesystem_dock.cpp')
-rw-r--r-- | editor/filesystem_dock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index 83e529ac35..9301d8c1a4 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -1329,7 +1329,7 @@ void FileSystemDock::_duplicate_operation_confirm() { if (to_duplicate.is_file) { new_path = base_dir.plus_file(new_name); } else { - new_path = base_dir.substr(0, base_dir.find_last("/")) + "/" + new_name; + new_path = base_dir.substr(0, base_dir.find_last("/")).plus_file(new_name); } //Present a more user friendly warning for name conflict |