equal
deleted
inserted
replaced
120 twi::const_iterator it=weaponItems.find(i); |
120 twi::const_iterator it=weaponItems.find(i); |
121 int num = it==weaponItems.end() ? 9 : (*this)[i]; |
121 int num = it==weaponItems.end() ? 9 : (*this)[i]; |
122 currentState = QString("%1%2").arg(currentState).arg(num); |
122 currentState = QString("%1%2").arg(currentState).arg(num); |
123 } |
123 } |
124 wconf->setValue(m_name->text(), currentState); |
124 wconf->setValue(m_name->text(), currentState); |
|
125 emit weaponsChanged(); |
125 } |
126 } |
126 |
127 |
127 int SelWeaponWidget::operator [] (unsigned int weaponIndex) const |
128 int SelWeaponWidget::operator [] (unsigned int weaponIndex) const |
128 { |
129 { |
129 twi::const_iterator it=weaponItems.find(weaponIndex); |
130 twi::const_iterator it=weaponItems.find(weaponIndex); |