QTfrontend/hwform.cpp
changeset 14509 64d73515abba
parent 14470 6ab8335fe0a6
child 14525 029f40c609b4
equal deleted inserted replaced
14507:184df3900ec4 14509:64d73515abba
  2068     QString lastTeam = config->value("frontend/lastSingleplayerTeam", QString()).toString();
  2068     QString lastTeam = config->value("frontend/lastSingleplayerTeam", QString()).toString();
  2069     if (!lastTeam.isNull() && !lastTeam.isEmpty())
  2069     if (!lastTeam.isNull() && !lastTeam.isEmpty())
  2070     {
  2070     {
  2071         int index = ui.pageCampaign->CBTeam->findData(lastTeam, Qt::DisplayRole);
  2071         int index = ui.pageCampaign->CBTeam->findData(lastTeam, Qt::DisplayRole);
  2072         if(index != -1)
  2072         if(index != -1)
       
  2073         {
  2073             ui.pageCampaign->CBTeam->setCurrentIndex(index);
  2074             ui.pageCampaign->CBTeam->setCurrentIndex(index);
       
  2075             UpdateCampaignPageTeam(index);
       
  2076         }
  2074         index = ui.pageTraining->CBTeam->findData(lastTeam, Qt::DisplayRole);
  2077         index = ui.pageTraining->CBTeam->findData(lastTeam, Qt::DisplayRole);
  2075         if(index != -1)
  2078         if(index != -1)
       
  2079         {
  2076             ui.pageTraining->CBTeam->setCurrentIndex(index);
  2080             ui.pageTraining->CBTeam->setCurrentIndex(index);
       
  2081             UpdateTrainingPageTeam(index);
       
  2082         }
  2077     }
  2083     }
  2078 }
  2084 }
  2079 
  2085 
  2080 void HWForm::UpdateCampaignPage(int index)
  2086 void HWForm::UpdateCampaignPage(int index)
  2081 {
  2087 {