diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2018-03-07 14:09:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-07 14:09:20 +0100 |
commit | 900384a622c7f3094540a43670421469e4ee0b06 (patch) | |
tree | cc5638323bcacefc36d309af97e6c4c36fe97ac6 /editor | |
parent | 2f3c45f55eab7364ff0f6806c81ddc7ba861e1a2 (diff) | |
parent | 96f61b2d6557b89885188362a724f40564bbcfcb (diff) |
Merge pull request #17243 from delftswa2018/trailingDotFix
Fix being able to create folder name with ending '.' on Windows
Diffstat (limited to 'editor')
-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 0be3bb86c7..9bfa50148f 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -918,7 +918,7 @@ void FileSystemDock::_make_dir_confirm() { if (dir_name.length() == 0) { EditorNode::get_singleton()->show_warning(TTR("No name provided")); return; - } else if (dir_name.find("/") != -1 || dir_name.find("\\") != -1 || dir_name.find(":") != -1) { + } else if (dir_name.find("/") != -1 || dir_name.find("\\") != -1 || dir_name.find(":") != -1 || dir_name.ends_with(".")) { EditorNode::get_singleton()->show_warning(TTR("Provided name contains invalid characters")); return; } |