QTfrontend/hwform.cpp
changeset 116 00d3d6d2e699
parent 111 30ca06092a64
child 133 c79cb5e5b24a
--- a/QTfrontend/hwform.cpp	Fri Aug 18 14:17:25 2006 +0000
+++ b/QTfrontend/hwform.cpp	Fri Aug 18 19:59:16 2006 +0000
@@ -60,7 +60,7 @@
 	QStringList teamslist = config->GetTeamsList();
 
 	if(teamslist.empty()) {
-		HWTeam defaultTeam("DefaultTeam", config);
+		HWTeam defaultTeam("DefaultTeam");
 		defaultTeam.SaveToFile();
 		teamslist.push_back("DefaultTeam");
 	}
@@ -152,14 +152,14 @@
 
 void HWForm::NewTeam()
 {
-	tmpTeam = new HWTeam("unnamed", config);
+	tmpTeam = new HWTeam("unnamed");
 
 	ui.Pages->setCurrentIndex(ID_PAGE_SETUP_TEAM);
 }
 
 void HWForm::EditTeam()
 {
-	tmpTeam = new HWTeam(ui.pageOptions->CBTeamName->currentText(), config);
+	tmpTeam = new HWTeam(ui.pageOptions->CBTeamName->currentText());
 	tmpTeam->LoadFromFile();
 	tmpTeam->SetToPage(this);
 	ui.Pages->setCurrentIndex(ID_PAGE_SETUP_TEAM);
@@ -238,7 +238,7 @@
 
 void HWForm::NetAddTeam()
 {
-	HWTeam team("DefaultTeam", config);
+	HWTeam team("DefaultTeam");
 	team.LoadFromFile();
 	hwnet->AddTeam(team);
 }