--- a/QTfrontend/hwform.cpp Thu Sep 10 07:48:30 2009 +0000
+++ b/QTfrontend/hwform.cpp Thu Sep 10 07:53:22 2009 +0000
@@ -166,8 +166,6 @@
connect(ui.pageTraining->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack()));
connect(ui.pageSelectWeapon->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack()));
- connect(ui.pageSelectWeapon->BtnDefault, SIGNAL(clicked()), ui.pageSelectWeapon->pWeapons, SLOT(setDefault()));
- connect(ui.pageSelectWeapon->BtnSave, SIGNAL(clicked()), ui.pageSelectWeapon->pWeapons, SLOT(save()));
connect(ui.pageSelectWeapon->BtnDelete, SIGNAL(clicked()),
ui.pageSelectWeapon->pWeapons, SLOT(deleteWeaponsName())); // executed first
--- 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) :