Explorar o código

Fix text search in Tree with multiselect

Dawid Marzec %!s(int64=2) %!d(string=hai) anos
pai
achega
76a3f8e573
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      scene/gui/tree.cpp

+ 5 - 1
scene/gui/tree.cpp

@@ -4850,7 +4850,11 @@ void Tree::_do_incr_search(const String &p_add) {
 		return;
 		return;
 	}
 	}
 
 
-	item->select(col);
+	if (select_mode == SELECT_MULTI) {
+		item->set_as_cursor(col);
+	} else {
+		item->select(col);
+	}
 	ensure_cursor_is_visible();
 	ensure_cursor_is_visible();
 }
 }