# HG changeset patch # User unc0rr # Date 1252569202 0 # Node ID e0750b23c9e6587eb017206bdbc1fda6c6207f9f # Parent 86c9aadea8174bf35e0f7b9eb7e13284cfcdf727 Move connect call to more appropriate place diff -r 86c9aadea817 -r e0750b23c9e6 QTfrontend/hwform.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 diff -r 86c9aadea817 -r e0750b23c9e6 QTfrontend/pages.cpp --- 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) :