summaryrefslogtreecommitdiff
path: root/editor/filesystem_dock.cpp
diff options
context:
space:
mode:
authorDaniel Kulas <danielkulas27@gmail.com>2019-04-06 22:49:32 +0200
committerDaniel Kulas <danielkulas27@gmail.com>2019-04-06 23:01:59 +0200
commit22b861ad9787523487c652250b42828d9991ad02 (patch)
tree4e70ba5dc5b252fe6ec02945b3be2bc265bb9735 /editor/filesystem_dock.cpp
parentde825df1210089b4f8427618bb758101d5ad379b (diff)
Fix "Show in File Manager" option
Diffstat (limited to 'editor/filesystem_dock.cpp')
-rw-r--r--editor/filesystem_dock.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp
index bd69fa7cdf..b637148f2d 100644
--- a/editor/filesystem_dock.cpp
+++ b/editor/filesystem_dock.cpp
@@ -1429,6 +1429,10 @@ void FileSystemDock::_file_option(int p_option, const Vector<String> p_selected)
case FILE_SHOW_IN_EXPLORER: {
// Show the file / folder in the OS explorer
String fpath = path;
+ if (path == "Favorites") {
+ fpath = p_selected[0];
+ }
+
if (!fpath.ends_with("/")) {
fpath = fpath.get_base_dir();
}