diff options
author | Yuri Sizov <yuris@humnom.net> | 2023-05-24 14:22:03 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-05-24 14:22:03 +0200 |
commit | f1b4c3d6e1e9d0b7406a4522dba85dcfa79e853e (patch) | |
tree | 484687aff7ad1a9df37ae12dce42deca5602e316 | |
parent | 094e88416ab84cc4e391703453fb46528739cd69 (diff) | |
download | redot-engine-f1b4c3d6e1e9d0b7406a4522dba85dcfa79e853e.tar.gz |
Fix a crash when hovering over "Favorites" in the FileSystem dock
-rw-r--r-- | editor/filesystem_dock.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index 976ccab99e..1c43c29c33 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -2281,6 +2281,10 @@ void FileSystemDock::remove_resource_tooltip_plugin(const Ref<EditorResourceTool } Control *FileSystemDock::create_tooltip_for_path(const String &p_path) const { + if (p_path == "Favorites") { + // No tooltip for the "Favorites" group. + return nullptr; + } if (DirAccess::exists(p_path)) { // No tooltip for directory. return nullptr; |