diff options
author | groud <gilles.roudiere@gmail.com> | 2018-10-19 22:43:48 +0200 |
---|---|---|
committer | groud <gilles.roudiere@gmail.com> | 2018-10-19 22:43:48 +0200 |
commit | c029e82761b7ae7b77708cf3bff757e50acefebf (patch) | |
tree | 5307f3a267e316dd29d67d1a0c27f5de94a2ef41 | |
parent | ebdb374d803ce224bc4d3bae33726a1aaa6c09a0 (diff) |
Make folders clicked in the filesystem dock open the selected folder
-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 4d386c1af6..e086166fff 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -412,7 +412,7 @@ void FileSystemDock::_tree_multi_selected(Object *p_item, int p_column, bool p_s return; TreeItem *favorites_item = tree->get_root()->get_children(); - if (selected->get_parent() == favorites_item) { + if (selected->get_parent() == favorites_item && !String(selected->get_metadata(0)).ends_with("/")) { // Go to the favorites if we click in the favorites and the path has changed path = "Favorites"; } else { |