From c6fa282fbbf9af4cfa67cffdae09ea692298d34f Mon Sep 17 00:00:00 2001 From: Daniel Kulas Date: Sat, 6 Apr 2019 22:49:32 +0200 Subject: [PATCH] Fix "Show in File Manager" option (cherry picked from commit 22b861ad9787523487c652250b42828d9991ad02) --- editor/filesystem_dock.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index c99786bb073..dd2178b43dd 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -1429,6 +1429,10 @@ void FileSystemDock::_file_option(int p_option, const Vector 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(); }