This commit is contained in:
Glenn Maynard
2005-02-14 01:38:57 +00:00
parent 43c221c1fa
commit 33b74d0fc3
+2 -14
View File
@@ -707,24 +707,12 @@ void ScreenOptionsMaster::RefreshIcons()
const OptionRowDefinition &data = row.m_RowDef; const OptionRowDefinition &data = row.m_RowDef;
// find first selection and whether multiple are selected // find first selection and whether multiple are selected
int iFirstSelection = -1; int iFirstSelection = row.GetOneSelection( p, true );
bool bMultipleSelected = false;
for( unsigned j=0; j<row.m_vbSelected[p].size(); j++ )
{
if( row.m_vbSelected[p][j] )
{
if( iFirstSelection != -1 )
bMultipleSelected = true;
else
iFirstSelection = j;
}
}
// set icon name // set icon name
CString sIcon; CString sIcon;
if( bMultipleSelected ) if( iFirstSelection == -1 )
{ {
sIcon = "Multi"; sIcon = "Multi";
} }