aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-02-09 19:48:59 +0100
committerdec05eba <dec05eba@protonmail.com>2021-02-09 19:48:59 +0100
commit31be2fd556fbfd6679ca2bcc131450e6853c155e (patch)
tree9708134238e481c8efe310c7d8f93864c491f2ca
parent16c7256f555d41e8e86da3bcdf7990e75157b856 (diff)
Matrix: dont focus selected on room sort after submit
-rw-r--r--src/plugins/Matrix.cpp8
1 files 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<MatrixRoomsPage>(program, body_ptr, tag_data.tag_item->get_title(), this, search_bar.get());
rooms_page->matrix_delegate = matrix_delegate;