QTfrontend/pages.cpp
changeset 2368 e0750b23c9e6
parent 2294 2e6ffb3ef304
child 2369 c3eb11f1ab3a
--- a/QTfrontend/pages.cpp	Thu Sep 10 07:48:30 2009 +0000
+++ b/QTfrontend/pages.cpp	Thu Sep 10 07:53:22 2009 +0000
@@ -752,7 +752,10 @@
 	BtnDefault = addButton(tr("Default"), pageLayout, 1, 1);
 	BtnDelete = addButton(tr("Delete"), pageLayout, 1, 2);
 	BtnSave = addButton(":/res/Save.png", pageLayout, 1, 3, true);
-	BtnSave->setStyleSheet("QPushButton{margin: 12px 0px 12px 0px;}");	
+	BtnSave->setStyleSheet("QPushButton{margin: 12px 0px 12px 0px;}");
+
+	connect(BtnDefault, SIGNAL(clicked()), pWeapons, SLOT(setDefault()));
+	connect(BtnSave, SIGNAL(clicked()), pWeapons, SLOT(save()));
 }
 
 PageInGame::PageInGame(QWidget* parent) :