Fix a crash when hovering over "Favorites" in the FileSystem dock
This commit is contained in:
parent
094e88416a
commit
f1b4c3d6e1
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue