equal
deleted
inserted
replaced
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 |