The obvious :
Code: Select all
[...]
const GG::ListBox::SelectionSet sels = m_list_box->Selections();
Refresh();
m_list_box->SetSelections(sels);
[...]
I think it's because the Refresh() call clear()s the listbox content, which is then recreated and so the saved references get unusable, but I may be remembering it all wrong...
If you know a way to make it work, please tell and I'll try but this patch is "works-for-me", so...