QTfrontend/selectWeapon.cpp
changeset 718 f93a38d2c982
parent 717 490dc8bb5b87
child 719 bea32693bd7a
--- a/QTfrontend/selectWeapon.cpp	Sun Jan 20 12:21:13 2008 +0000
+++ b/QTfrontend/selectWeapon.cpp	Sun Jan 20 12:43:36 2008 +0000
@@ -145,6 +145,12 @@
   return wconf->value(name).toString();
 }
 
+void SelWeaponWidget::deleteWeaponsName()
+{
+  if (curWeaponsName=="") return;
+  wconf->remove(curWeaponsName);
+}
+
 void SelWeaponWidget::setWeaponsName(const QString& name, bool editMode)
 {
   if(name!="" && wconf->contains(name)) {