QTfrontend/selectWeapon.cpp
changeset 4416 29d2d1548387
parent 4412 c9a78ba03679
child 4598 7cb8c9db6e8d
--- a/QTfrontend/selectWeapon.cpp	Mon Nov 22 21:57:45 2010 +0300
+++ b/QTfrontend/selectWeapon.cpp	Mon Nov 22 22:05:46 2010 +0100
@@ -247,6 +247,11 @@
     }
 }
 
+void SelWeaponWidget::newWeaponsName()
+{
+    setWeaponsName(tr("new"));
+}
+
 void SelWeaponWidget::setWeaponsName(const QString& name)
 {
     m_name->setText(name);
@@ -255,6 +260,8 @@
 
     if(name != "" && wconf->contains(name)) {
         setWeapons(wconf->value(name).toString());
+    } else {
+        setWeapons(*cDefaultAmmoStore);
     }
 }