Save game list sorting.

Fixes issue 5771.
This commit is contained in:
rog
2012-12-08 23:22:29 -05:00
parent 4fc0125fb3
commit 43d673b576
3 changed files with 10 additions and 6 deletions

View File

@ -320,7 +320,7 @@ void CGameListCtrl::Update()
// Sort items by Title
wxListEvent event;
event.m_col = COLUMN_TITLE; last_column = 0;
event.m_col = SConfig::GetInstance().m_ListSort; last_column = 0;
OnColumnClick(event);
SetColumnWidth(COLUMN_SIZE, wxLIST_AUTOSIZE);
@ -708,6 +708,7 @@ void CGameListCtrl::OnColumnClick(wxListEvent& event)
last_sort = current_column;
}
SConfig::GetInstance().m_ListSort = last_sort;
caller = this;
SortItems(wxListCompare, last_sort);
}