diff -r 416fdfb666da -r 6c97379c584b QTfrontend/ui/page/pageselectweapon.cpp --- a/QTfrontend/ui/page/pageselectweapon.cpp Sun Dec 11 19:57:04 2011 +0100 +++ b/QTfrontend/ui/page/pageselectweapon.cpp Sun Dec 11 23:15:06 2011 +0300 @@ -53,17 +53,13 @@ bottomLayout->setColumnStretch(1,1); bottomLayout->setColumnStretch(2,1); - btnSave = addButton(":/res/Save.png", bottomLayout, 0, 3, 2, 1, true); - btnSave->setStyleSheet("QPushButton{margin: 24px 0 0 0;}"); - bottomLayout->setAlignment(btnSave, Qt::AlignRight | Qt::AlignBottom); - return bottomLayout; } void PageSelectWeapon::connectSignals() { connect(BtnDefault, SIGNAL(clicked()), pWeapons, SLOT(setDefault())); - connect(btnSave, SIGNAL(clicked()), pWeapons, SLOT(save())); + connect(this, SIGNAL(goBack()), pWeapons, SLOT(save())); connect(BtnNew, SIGNAL(clicked()), pWeapons, SLOT(newWeaponsName())); connect(BtnCopy, SIGNAL(clicked()), pWeapons, SLOT(copy())); connect(selectWeaponSet, SIGNAL(currentIndexChanged(const QString&)), pWeapons, SLOT(setWeaponsName(const QString&)));