QTfrontend/hwform.cpp
changeset 1902 aeadb10c2d77
parent 1899 5763f46d7486
child 1905 b1ec8db513f2
--- a/QTfrontend/hwform.cpp	Wed Mar 18 21:42:50 2009 +0000
+++ b/QTfrontend/hwform.cpp	Wed Mar 18 21:43:22 2009 +0000
@@ -146,7 +146,6 @@
 	connect(ui.pageSelectWeapon->pWeapons, SIGNAL(weaponsDeleted()),
 		this, SLOT(GoBack())); // executed third
 
-	connect(ui.pageScheme->BtnSave, SIGNAL(clicked()), this, SLOT(GoBack()));
 	connect(ui.pageScheme->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack()));
 
 
@@ -356,6 +355,9 @@
 	if (id == ID_PAGE_NET) {
 		if(hwnet || pnetserver) NetDisconnect();
 	}
+
+	if (curid == ID_PAGE_SCHEME)
+		ammoSchemeModel->Save();
 }
 
 void HWForm::btnExitPressed()
@@ -365,8 +367,6 @@
 
 void HWForm::btnExitClicked()
 {
-	ammoSchemeModel->Save();
-	
 	if (eggTimer.elapsed() < 3000)
 		close();
 	else