Make parent folder selectable. Fix #16253

(cherry picked from commit 6e1c02b828)
This commit is contained in:
Guilherme Felipe 2018-02-01 13:54:07 -02:00 committed by Hein-Pieter van Braam
parent eda3169cd1
commit 1a9a40fe31
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ void FileSystemDock::_update_files(bool p_keep_selection) {
Ref<Texture> folderIcon = (use_thumbnails) ? folder_thumbnail : get_icon("folder", "FileDialog"); Ref<Texture> folderIcon = (use_thumbnails) ? folder_thumbnail : get_icon("folder", "FileDialog");
if (path != "res://") { if (path != "res://") {
files->add_item("..", folderIcon, false); files->add_item("..", folderIcon, true);
String bd = path.get_base_dir(); String bd = path.get_base_dir();
if (bd != "res://" && !bd.ends_with("/")) if (bd != "res://" && !bd.ends_with("/"))