QTfrontend/hwform.cpp
changeset 1897 e9dcb47013c7
parent 1895 7ba647a88b2f
child 1898 f0ab0c77946d
--- 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