Ver Fonte

Fixed quick open not showing enties with no search text, issue 11277

Paulb23 há 8 anos atrás
pai
commit
afb1dd1e4c
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      editor/quick_open.cpp

+ 1 - 1
editor/quick_open.cpp

@@ -189,7 +189,7 @@ Vector<Pair<String, Ref<Texture> > > EditorQuickOpen::_sort_fs(Vector<Pair<Strin
 	Vector<Pair<String, Ref<Texture> > > sorted_list;
 
 	if (search_text == String() || list.size() == 0)
-		return sorted_list;
+		return list;
 
 	Vector<float> scores;
 	scores.resize(list.size());