QTfrontend/hwform.cpp
branchspacecampaign
changeset 9272 6fa30e491b37
parent 9249 7b8c82785145
child 9275 3df990e2ee0e
equal deleted inserted replaced
9269:4adb0e860bed 9272:6fa30e491b37
  1894 
  1894 
  1895 
  1895 
  1896 void HWForm::UpdateCampaignPage(int index)
  1896 void HWForm::UpdateCampaignPage(int index)
  1897 {
  1897 {
  1898     Q_UNUSED(index);
  1898     Q_UNUSED(index);
  1899 
       
  1900     HWTeam team(ui.pageCampaign->CBTeam->currentText());
  1899     HWTeam team(ui.pageCampaign->CBTeam->currentText());
  1901     ui.pageCampaign->CBMission->clear();
  1900     ui.pageCampaign->CBMission->clear();
  1902 
  1901 
  1903     QString campaignName = ui.pageCampaign->CBCampaign->currentText();
  1902     QString campaignName = ui.pageCampaign->CBCampaign->currentText();
  1904     QStringList missionEntries = getCampMissionList(campaignName);
  1903     QStringList missionEntries = getCampMissionList(campaignName);
  1905     QString tName = team.name();
  1904     QString tName = team.name();
  1906     unsigned int n = missionEntries.count();
  1905     unsigned int n = missionEntries.count();
  1907     unsigned int m = getCampProgress(tName, campaignName);
  1906     unsigned int m = getCampProgress(tName, campaignName);
  1908 
  1907 
       
  1908 	getUnlockedMissions2(campaignName, tName);
  1909     // if the campaign name changes update the campaignMissionDescriptions list
  1909     // if the campaign name changes update the campaignMissionDescriptions list
  1910     // this will be used later in UpdateCampaignPageMission() to update
  1910     // this will be used later in UpdateCampaignPageMission() to update
  1911     // the mission description in the campaign page
  1911     // the mission description in the campaign page
  1912     bool updateMissionList = false;
  1912     bool updateMissionList = false;
  1913     QSettings * m_info;
  1913     QSettings * m_info;