QTfrontend/selectWeapon.cpp
changeset 1004 4cbd91296df7
parent 883 07a568ba44e0
child 1066 1f1b3686a2b0
--- a/QTfrontend/selectWeapon.cpp	Tue Jun 17 20:36:37 2008 +0000
+++ b/QTfrontend/selectWeapon.cpp	Tue Jun 17 21:25:21 2008 +0000
@@ -74,7 +74,10 @@
   QWidget(parent)
 {
   wconf = new QSettings(cfgdir->absolutePath() + "/weapons.ini", QSettings::IniFormat, this);
-  if (wconf->allKeys().empty()) {
+
+  if(wconf->value("Default", "").toString().size() != cDefaultAmmoStore->size() - 10)
+  {
+    wconf->clear();
     wconf->setValue("Default", cDefaultAmmoStore->mid(10));
   }