Skip to content

Commit b6223c0

Browse files
committed
Merge pull request godotengine#96571 from AThousandShips/fix_fave_crash
[Editor] Don't show popup when clicking empty in Favorites
2 parents cb21a20 + d2a8b33 commit b6223c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

editor/filesystem_dock.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3418,6 +3418,11 @@ void FileSystemDock::_file_list_empty_clicked(const Vector2 &p_pos, MouseButton
34183418

34193419
current_path = current_path_line_edit->get_text();
34203420

3421+
// Favorites isn't a directory so don't show menu.
3422+
if (current_path == "Favorites") {
3423+
return;
3424+
}
3425+
34213426
file_list_popup->clear();
34223427
file_list_popup->reset_size();
34233428

0 commit comments

Comments
 (0)