Fix sorting by symbol load status
Thanks to @mobile46 for finding the issue in #3313
This commit is contained in:
		
							parent
							
								
									4c2573a456
								
							
						
					
					
						commit
						2d2a2181a3
					
				| 
						 | 
				
			
			@ -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)
 | 
			
		||||
    {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue