QTfrontend/team.cpp
changeset 336 82d654db133d
parent 319 7f3bd9e31f18
child 339 7535ab6c3820
--- a/QTfrontend/team.cpp	Sun Jan 14 21:10:36 2007 +0000
+++ b/QTfrontend/team.cpp	Sun Jan 14 21:17:35 2007 +0000
@@ -164,7 +164,8 @@
 void HWTeam::SetToPage(HWForm * hwform)
 {
 	hwform->ui.pageEditTeam->TeamNameEdit->setText(TeamName);
-	hwform->ui.pageEditTeam->difficultyBox->setValue(difficulty);
+	hwform->ui.pageEditTeam->CBTeamLvl->setCurrentIndex(difficulty);
+	hwform->ui.pageEditTeam->CBTeamLvl_activated(difficulty);
 	for(int i = 0; i < 8; i++)
 	{
 		hwform->ui.pageEditTeam->HHNameEdit[i]->setText(HHName[i]);
@@ -184,7 +185,7 @@
 void HWTeam::GetFromPage(HWForm * hwform)
 {
 	TeamName  = hwform->ui.pageEditTeam->TeamNameEdit->text();
-	difficulty = hwform->ui.pageEditTeam->difficultyBox->value();
+	difficulty = hwform->ui.pageEditTeam->CBTeamLvl->currentIndex();
 	for(int i = 0; i < 8; i++)
 	{
 		HHName[i] = hwform->ui.pageEditTeam->HHNameEdit[i]->text();