118 |
118 |
119 connect(ui.pageSelectWeapon->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack())); |
119 connect(ui.pageSelectWeapon->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack())); |
120 connect(ui.pageSelectWeapon->BtnDefault, SIGNAL(clicked()), ui.pageSelectWeapon->pWeapons, SLOT(setDefault())); |
120 connect(ui.pageSelectWeapon->BtnDefault, SIGNAL(clicked()), ui.pageSelectWeapon->pWeapons, SLOT(setDefault())); |
121 connect(ui.pageSelectWeapon->BtnSave, SIGNAL(clicked()), ui.pageSelectWeapon->pWeapons, SLOT(save())); |
121 connect(ui.pageSelectWeapon->BtnSave, SIGNAL(clicked()), ui.pageSelectWeapon->pWeapons, SLOT(save())); |
122 |
122 |
|
123 connect(ui.pageSelectWeapon->BtnDelete, SIGNAL(clicked()), |
|
124 ui.pageSelectWeapon->pWeapons, SLOT(deleteWeaponsName())); // executed first |
|
125 connect(ui.pageSelectWeapon->BtnDelete, SIGNAL(clicked()), |
|
126 this, SLOT(UpdateWeapons())); // executed second |
|
127 connect(ui.pageSelectWeapon->BtnDelete, SIGNAL(clicked()), |
|
128 this, SLOT(GoBack())); // executed third |
|
129 |
123 GoToPage(ID_PAGE_MAIN); |
130 GoToPage(ID_PAGE_MAIN); |
124 } |
131 } |
125 |
132 |
126 void HWForm::UpdateWeapons() |
133 void HWForm::UpdateWeapons() |
127 { |
134 { |