QTfrontend/ui/widget/selectWeapon.cpp
changeset 15542 3b0b6ce76303
parent 14839 e239378a9400
child 15594 fdca2af677a9
equal deleted inserted replaced
15541:d122b65bdf6f 15542:3b0b6ce76303
   329         QTextStream stream( &file );
   329         QTextStream stream( &file );
   330         stream << stateFull << endl;
   330         stream << stateFull << endl;
   331         file.close();
   331         file.close();
   332     }
   332     }
   333     emit weaponsEdited(curWeaponsName, m_name->text(), stateFull);
   333     emit weaponsEdited(curWeaponsName, m_name->text(), stateFull);
       
   334     curWeaponsName = m_name->text();
   334 }
   335 }
   335 
   336 
   336 int SelWeaponWidget::operator [] (unsigned int weaponIndex) const
   337 int SelWeaponWidget::operator [] (unsigned int weaponIndex) const
   337 {
   338 {
   338     twi::const_iterator it = weaponItems.find(weaponIndex);
   339     twi::const_iterator it = weaponItems.find(weaponIndex);