QTfrontend/hwform.cpp
changeset 718 f93a38d2c982
parent 717 490dc8bb5b87
child 724 21706280d913
equal deleted inserted replaced
717:490dc8bb5b87 718:f93a38d2c982
   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 {