author | unc0rr |
Tue, 17 Jun 2008 21:25:21 +0000 | |
changeset 1004 | 4cbd91296df7 |
parent 1003 | 990c8b12b01a |
child 1005 | 9d2e8f3a4fa6 |
--- 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)); }