summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-04-07 12:01:51 +0200
committerGitHub <noreply@github.com>2019-04-07 12:01:51 +0200
commit4ff505426bec0121ef00a0f1c86553973927ebbe (patch)
treea74aac8cb0ef9bc24201b39e214b8a9cf702a100
parent163ef9fab3ab1b172f4930ec372932cd1024042d (diff)
parent22b861ad9787523487c652250b42828d9991ad02 (diff)
Merge pull request #27741 from danielkulas/path
Fix "Show in File Manager" option
-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();
}