Move connect call to more appropriate place
authorunc0rr
Thu, 10 Sep 2009 07:53:22 +0000
changeset 2368 e0750b23c9e6
parent 2367 86c9aadea817
child 2369 c3eb11f1ab3a
Move connect call to more appropriate place
QTfrontend/hwform.cpp
QTfrontend/pages.cpp
--- 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) :