diff options
| author | Hein-Pieter van Braam | 2018-03-07 14:09:20 +0100 |
|---|---|---|
| committer | GitHub | 2018-03-07 14:09:20 +0100 |
| commit | 900384a622c7f3094540a43670421469e4ee0b06 (patch) | |
| tree | cc5638323bcacefc36d309af97e6c4c36fe97ac6 /editor/filesystem_dock.cpp | |
| parent | 2f3c45f55eab7364ff0f6806c81ddc7ba861e1a2 (diff) | |
| parent | 96f61b2d6557b89885188362a724f40564bbcfcb (diff) | |
| download | godot-900384a622c7f3094540a43670421469e4ee0b06.tar.gz godot-900384a622c7f3094540a43670421469e4ee0b06.tar.zst godot-900384a622c7f3094540a43670421469e4ee0b06.zip | |
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 0be3bb86c..9bfa50148 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; } |
