QTfrontend/hwform.cpp
changeset 3324 339b271d6641
parent 3284 7ffd0e20ad08
child 3697 d5b30d6373fc
--- a/QTfrontend/hwform.cpp	Thu Apr 08 02:35:40 2010 +0000
+++ b/QTfrontend/hwform.cpp	Thu Apr 08 17:56:30 2010 +0000
@@ -416,9 +416,11 @@
     if (id == ID_PAGE_MULTIPLAYER || id == ID_PAGE_NETGAME) {
         QStringList tmNames = config->GetTeamsList();
         TeamSelWidget* curTeamSelWidget;
-        ui.pageOptions->BtnNewTeam->setEnabled(false);
-        ui.pageOptions->BtnEditTeam->setEnabled(false);
-        ui.pageOptions->BtnDeleteTeam->setEnabled(false);
+        ui.pageOptions->BtnNewTeam->setVisible(false);
+        ui.pageOptions->BtnEditTeam->setVisible(false);
+        ui.pageOptions->BtnDeleteTeam->setVisible(false);
+        ui.pageOptions->CBTeamName->setVisible(false);
+        ui.pageOptions->LblNoEditTeam->setVisible(true);
 
         if(id == ID_PAGE_MULTIPLAYER) {
           curTeamSelWidget = ui.pageMultiplayer->teamsSelect;
@@ -451,9 +453,11 @@
 
     if(id == ID_PAGE_MAIN)
     {
-        ui.pageOptions->BtnNewTeam->setEnabled(true);
-        ui.pageOptions->BtnEditTeam->setEnabled(true);
-        ui.pageOptions->BtnDeleteTeam->setEnabled(true);
+        ui.pageOptions->BtnNewTeam->setVisible(true);
+        ui.pageOptions->BtnEditTeam->setVisible(true);
+        ui.pageOptions->BtnDeleteTeam->setVisible(true);
+        ui.pageOptions->CBTeamName->setVisible(true);
+        ui.pageOptions->LblNoEditTeam->setVisible(false);
     }
 
     // load and save ignore/friends lists