1
0
forked from 0ad/0ad

Fix a bug in b8fce56821 which prevented the replaylist from being sorted correclty on init, refs #2405, #3473.

The default column argument is given in XML and applied in
COList::SetupText() but it hasn't been stored, preventing JS from
knowing the selected column.

This was SVN commit r17665.
This commit is contained in:
elexis 2016-01-18 14:45:13 +00:00
parent 8827db201a
commit 7c40c67efa

View File

@ -95,6 +95,8 @@ void COList::SetupText()
m_SelectedDef = c;
}
if (m_SelectedDef != (size_t)-1)
GUI<CStr>::SetSetting(this, "selected_column", m_ObjectsDefs[m_SelectedDef].m_Id.substr(5));
// Generate texts
float buffered_y = 0.f;