QTfrontend/hwform.cpp
changeset 7636 10caa79d4a80
parent 7628 bc7b1d228a2c
child 7679 bfa26daad684
equal deleted inserted replaced
7635:7a8b2f04c7dd 7636:10caa79d4a80
  1611     QStringList missionEntries = getCampMissionList(campaignName);
  1611     QStringList missionEntries = getCampMissionList(campaignName);
  1612     QString tName = team.name();
  1612     QString tName = team.name();
  1613     unsigned int n = missionEntries.count();
  1613     unsigned int n = missionEntries.count();
  1614     unsigned int m = getCampProgress(tName, campaignName);
  1614     unsigned int m = getCampProgress(tName, campaignName);
  1615 
  1615 
  1616     for (unsigned int i = min(m + 1, n); i > 0; i--)
  1616     for (unsigned int i = qMin(m + 1, n); i > 0; i--)
  1617     {
  1617     {
  1618         ui.pageCampaign->CBMission->addItem(QString("Mission %1: ").arg(i) + QString(missionEntries[i-1]), QString(missionEntries[i-1]));
  1618         ui.pageCampaign->CBMission->addItem(QString("Mission %1: ").arg(i) + QString(missionEntries[i-1]), QString(missionEntries[i-1]));
  1619     }
  1619     }
  1620 }
  1620 }
  1621 
  1621