From 31be2fd556fbfd6679ca2bcc131450e6853c155e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 9 Feb 2021 19:48:59 +0100 Subject: Matrix: dont focus selected on room sort after submit --- src/plugins/Matrix.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp index 8e1e54e..8c9b1c1 100644 --- a/src/plugins/Matrix.cpp +++ b/src/plugins/Matrix.cpp @@ -623,9 +623,9 @@ namespace QuickMedia { } if(sort_on_update) { sort_on_update = false; - BodyItem *selected_item = body->get_selected(); + //BodyItem *selected_item = body->get_selected(); sort_room_body_items(body->items); - body_set_selected_item(body, selected_item); + //body_set_selected_item(body, selected_item); } matrix_delegate->update(MatrixPageType::ROOM_LIST); if(filter_on_update) { @@ -717,9 +717,9 @@ namespace QuickMedia { Body *body_ptr = body.get(); TagData &tag_data = tag_body_items_by_name[url]; body->items = tag_data.room_body_items; - BodyItem *selected_item = body->get_selected(); + //BodyItem *selected_item = body->get_selected(); sort_room_body_items(body->items); - body_set_selected_item(body.get(), selected_item); + //body_set_selected_item(body.get(), selected_item); auto search_bar = create_search_bar("Search...", SEARCH_DELAY_FILTER); auto rooms_page = std::make_unique(program, body_ptr, tag_data.tag_item->get_title(), this, search_bar.get()); rooms_page->matrix_delegate = matrix_delegate; -- cgit v1.2.3