From ddcc3451b1d2938e4e44621946a4012be7989662 Mon Sep 17 00:00:00 2001 From: spycrab Date: Thu, 26 Apr 2018 11:50:18 +0200 Subject: [PATCH] Qt/GameList: Sort by title by default --- Source/Core/DolphinQt2/GameList/GameList.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Core/DolphinQt2/GameList/GameList.cpp b/Source/Core/DolphinQt2/GameList/GameList.cpp index 210cc539d6..8ccec0ea32 100644 --- a/Source/Core/DolphinQt2/GameList/GameList.cpp +++ b/Source/Core/DolphinQt2/GameList/GameList.cpp @@ -92,6 +92,10 @@ void GameList::MakeListView() connect(hor_header, &QHeaderView::sectionMoved, this, &GameList::OnHeaderViewChanged); hor_header->setSectionsMovable(true); + + if (!Settings::GetQSettings().contains(QStringLiteral("tableheader/state"))) + m_list->sortByColumn(GameListModel::COL_TITLE, Qt::AscendingOrder); + hor_header->restoreState( Settings::GetQSettings().value(QStringLiteral("tableheader/state")).toByteArray());