Skip to content
Permalink
Browse files
Merge pull request #6697 from spycrab/qt_sort
Qt/GameList: Sort by title by default
  • Loading branch information
Helios747 committed Apr 27, 2018
2 parents cbb1f4a + ddcc345 commit 2b9df8e
Showing 1 changed file with 4 additions and 0 deletions.
@@ -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());

0 comments on commit 2b9df8e

Please sign in to comment.