From eb7527254fdc03271f5520ce74eaecb54fdff485 Mon Sep 17 00:00:00 2001 From: vitor-k Date: Sat, 28 Sep 2019 15:57:26 -0300 Subject: [PATCH] Sort game items after the list is populated --- src/citra_qt/game_list.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/citra_qt/game_list.cpp b/src/citra_qt/game_list.cpp index 1069db22b..d5fb8ee55 100644 --- a/src/citra_qt/game_list.cpp +++ b/src/citra_qt/game_list.cpp @@ -417,6 +417,8 @@ void GameList::DonePopulating(QStringList watch_list) { if (children_total > 0) { search_field->setFocus(); } + item_model->sort(tree_view->header()->sortIndicatorSection(), + tree_view->header()->sortIndicatorOrder()); emit PopulatingCompleted(); } @@ -641,8 +643,6 @@ void GameList::LoadInterfaceLayout() { // so make it as large as possible as default. header->resizeSection(COLUMN_NAME, header->width()); } - - item_model->sort(header->sortIndicatorSection(), header->sortIndicatorOrder()); } const QStringList GameList::supported_file_extensions = {"3ds", "3dsx", "elf", "axf",