1
0
Fork 0

Fix sorting by symbol load status

Thanks to @mobile46 for finding the issue in #3313
This commit is contained in:
Duncan Ogilvie 2024-04-11 02:18:26 +02:00
parent 4c2573a456
commit 2d2a2181a3
1 changed files with 13 additions and 0 deletions

View File

@ -80,6 +80,19 @@ public:
}
}
void sortRows(duint column, bool ascending) override
{
// HACK: when sorting by status, forcefully fill in the text so the sorting works
if(column == ColStatus)
{
for(duint row = 0; row < mData.size(); row++)
{
mData[row][column].text = getCellContent(row, column);
}
}
StdIconTable::sortRows(column, ascending);
}
private:
MODULESYMBOLSTATUS getStatus(duint r)
{