QTfrontend/ui/page/pageselectweapon.cpp
changeset 12665 5664ec82aed7
parent 11674 d59b6f289e30
child 12763 ad67a3804981
--- a/QTfrontend/ui/page/pageselectweapon.cpp	Sat Oct 07 01:05:55 2017 +0200
+++ b/QTfrontend/ui/page/pageselectweapon.cpp	Sat Oct 07 03:43:06 2017 +0200
@@ -59,11 +59,12 @@
 
 void PageSelectWeapon::connectSignals()
 {
+    connect(selectWeaponSet, SIGNAL(currentIndexChanged(const QString&)), pWeapons, SLOT(switchWeapons(const QString&)));
     connect(BtnDefault, SIGNAL(clicked()), pWeapons, SLOT(setDefault()));
     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&)));
+    connect(BtnDelete, SIGNAL(clicked()), pWeapons, SLOT(deleteWeaponsName()));
 }
 
 PageSelectWeapon::PageSelectWeapon(QWidget* parent) :  AbstractPage(parent)