simplify
This commit is contained in:
@@ -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";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user