QTfrontend/selectWeapon.cpp
changeset 695 34a93d123712
parent 694 436045756181
child 696 d6f32ed6edc8
equal deleted inserted replaced
694:436045756181 695:34a93d123712
   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);