Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Should completely fix game list sorting.
  • Loading branch information
rog9 committed Dec 24, 2012
1 parent da5e61b commit 2dd570c
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions Source/Core/DolphinWX/Src/GameListCtrl.cpp
Expand Up @@ -713,20 +713,25 @@ void CGameListCtrl::OnColumnClick(wxListEvent& event)
if(event.GetColumn() != COLUMN_BANNER)
{
int current_column = event.GetColumn();

if (last_column == current_column)
if (sorted)
{
last_sort = -last_sort;
if (last_column == current_column)
{
last_sort = -last_sort;
}
else
{
SConfig::GetInstance().m_ListSort2 = last_sort;
last_column = current_column;
last_sort = current_column;
}
SConfig::GetInstance().m_ListSort = last_sort;
}
else
{
if (sorted)
SConfig::GetInstance().m_ListSort2 = last_sort;
last_column = current_column;
last_sort = current_column;
last_column = current_column;
}
if (sorted)
SConfig::GetInstance().m_ListSort = last_sort;
caller = this;
SortItems(wxListCompare, last_sort);
}
Expand Down

0 comments on commit 2dd570c

Please sign in to comment.