summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-09-04 18:55:52 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-09-04 18:55:52 +0200
commitb6223c0df0300ba2db17b5742c349f13c33f8884 (patch)
tree09d7499e3465c05fbec853bbd542aa2d362ded99
parentcb21a207b3ee2e6060c3bf6a5f49f1d33d1af792 (diff)
parentd2a8b330d881ca50fa238805dee9a1e4b71fb9b0 (diff)
downloadredot-engine-b6223c0df0300ba2db17b5742c349f13c33f8884.tar.gz
Merge pull request #96571 from AThousandShips/fix_fave_crash
[Editor] Don't show popup when clicking empty in Favorites
-rw-r--r--editor/filesystem_dock.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp
index 99cd2ad526..c58b24e078 100644
--- a/editor/filesystem_dock.cpp
+++ b/editor/filesystem_dock.cpp
@@ -3418,6 +3418,11 @@ void FileSystemDock::_file_list_empty_clicked(const Vector2 &p_pos, MouseButton
current_path = current_path_line_edit->get_text();
+ // Favorites isn't a directory so don't show menu.
+ if (current_path == "Favorites") {
+ return;
+ }
+
file_list_popup->clear();
file_list_popup->reset_size();