summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2023-05-24 14:22:03 +0200
committerYuri Sizov <yuris@humnom.net>2023-05-24 14:22:03 +0200
commitf1b4c3d6e1e9d0b7406a4522dba85dcfa79e853e (patch)
tree484687aff7ad1a9df37ae12dce42deca5602e316 /editor
parent094e88416ab84cc4e391703453fb46528739cd69 (diff)
downloadredot-engine-f1b4c3d6e1e9d0b7406a4522dba85dcfa79e853e.tar.gz
Fix a crash when hovering over "Favorites" in the FileSystem dock
Diffstat (limited to 'editor')
-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 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;