--- a/QTfrontend/hwform.cpp Mon Mar 16 14:43:15 2009 +0000
+++ b/QTfrontend/hwform.cpp Mon Mar 16 19:55:56 2009 +0000
@@ -150,7 +150,7 @@
connect(ui.pageScheme->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack()));
- AmmoSchemeModel * ammoSchemeModel = new AmmoSchemeModel(this);
+ ammoSchemeModel = new AmmoSchemeModel(this, cfgdir->absolutePath() + "/schemes.ini");
ui.pageScheme->setModel(ammoSchemeModel);
ui.pageMultiplayer->gameCFG->GameSchemes->setModel(ammoSchemeModel);
@@ -365,6 +365,8 @@
void HWForm::btnExitClicked()
{
+ ammoSchemeModel->Save();
+
if (eggTimer.elapsed() < 3000)
close();
else