QTfrontend/hwform.cpp
changeset 3324 339b271d6641
parent 3284 7ffd0e20ad08
child 3697 d5b30d6373fc
equal deleted inserted replaced
3323:091cf214bdd5 3324:339b271d6641
   414     updateXfire();
   414     updateXfire();
   415 #endif
   415 #endif
   416     if (id == ID_PAGE_MULTIPLAYER || id == ID_PAGE_NETGAME) {
   416     if (id == ID_PAGE_MULTIPLAYER || id == ID_PAGE_NETGAME) {
   417         QStringList tmNames = config->GetTeamsList();
   417         QStringList tmNames = config->GetTeamsList();
   418         TeamSelWidget* curTeamSelWidget;
   418         TeamSelWidget* curTeamSelWidget;
   419         ui.pageOptions->BtnNewTeam->setEnabled(false);
   419         ui.pageOptions->BtnNewTeam->setVisible(false);
   420         ui.pageOptions->BtnEditTeam->setEnabled(false);
   420         ui.pageOptions->BtnEditTeam->setVisible(false);
   421         ui.pageOptions->BtnDeleteTeam->setEnabled(false);
   421         ui.pageOptions->BtnDeleteTeam->setVisible(false);
       
   422         ui.pageOptions->CBTeamName->setVisible(false);
       
   423         ui.pageOptions->LblNoEditTeam->setVisible(true);
   422 
   424 
   423         if(id == ID_PAGE_MULTIPLAYER) {
   425         if(id == ID_PAGE_MULTIPLAYER) {
   424           curTeamSelWidget = ui.pageMultiplayer->teamsSelect;
   426           curTeamSelWidget = ui.pageMultiplayer->teamsSelect;
   425         } else {
   427         } else {
   426           curTeamSelWidget = ui.pageNetGame->pNetTeamsWidget;
   428           curTeamSelWidget = ui.pageNetGame->pNetTeamsWidget;
   449         ui.pageGameStats->renderStats();
   451         ui.pageGameStats->renderStats();
   450     }
   452     }
   451 
   453 
   452     if(id == ID_PAGE_MAIN)
   454     if(id == ID_PAGE_MAIN)
   453     {
   455     {
   454         ui.pageOptions->BtnNewTeam->setEnabled(true);
   456         ui.pageOptions->BtnNewTeam->setVisible(true);
   455         ui.pageOptions->BtnEditTeam->setEnabled(true);
   457         ui.pageOptions->BtnEditTeam->setVisible(true);
   456         ui.pageOptions->BtnDeleteTeam->setEnabled(true);
   458         ui.pageOptions->BtnDeleteTeam->setVisible(true);
       
   459         ui.pageOptions->CBTeamName->setVisible(true);
       
   460         ui.pageOptions->LblNoEditTeam->setVisible(false);
   457     }
   461     }
   458 
   462 
   459     // load and save ignore/friends lists
   463     // load and save ignore/friends lists
   460     if(lastid == ID_PAGE_NETGAME) // leaving a room
   464     if(lastid == ID_PAGE_NETGAME) // leaving a room
   461         ui.pageNetGame->pChatWidget->saveLists(ui.pageOptions->editNetNick->text());
   465         ui.pageNetGame->pChatWidget->saveLists(ui.pageOptions->editNetNick->text());