summaryrefslogtreecommitdiff
path: root/editor/filesystem_dock.cpp
diff options
context:
space:
mode:
authorNils ANDRÉ-CHANG <nils.andre.chang@gmail.com>2019-06-16 13:31:57 +0100
committerNils ANDRÉ-CHANG <nils.andre.chang@gmail.com>2019-06-23 13:33:50 +0100
commitd2833d4f4d891b6a0ee32a04f9d32a410b998b93 (patch)
tree3e1ce371e8edfb4f30571adb1e3c2b0b4a0a3389 /editor/filesystem_dock.cpp
parentf410e7a8a9b14fd9f5c210afcc9e3519e9ce246d (diff)
Replace ` + "/" + ` with `String::file_add()`
Diffstat (limited to 'editor/filesystem_dock.cpp')
-rw-r--r--editor/filesystem_dock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp
index e57217bb11..a9e2e0f586 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