QTfrontend/hwform.cpp
changeset 11958 de66192866d3
parent 11957 1201fc039e24
child 11959 3c15903256a7
--- a/QTfrontend/hwform.cpp	Wed May 04 07:41:46 2016 +0200
+++ b/QTfrontend/hwform.cpp	Wed May 04 08:44:53 2016 +0200
@@ -1882,7 +1882,7 @@
 
     for(int i=0;i<campaignMissionInfo.size();i++)
     {
-        ui.pageCampaign->CBMission->addItem(QString(campaignMissionInfo[i].name), QString(campaignMissionInfo[i].name));
+        ui.pageCampaign->CBMission->addItem(QString(campaignMissionInfo[i].realName), QString(campaignMissionInfo[i].name));
         if(isMissionWon(campaignName, i, tName))
             ui.pageCampaign->CBMission->setItemIcon(i, finishedIcon);
         else
@@ -1935,7 +1935,7 @@
     UpdateCampaignPage(0);
     for(int i=0;i<ui.pageCampaign->CBMission->count();i++)
     {
-        if (ui.pageCampaign->CBMission->itemText(i)==missionTitle)
+        if (ui.pageCampaign->CBMission->itemData(i)==missionTitle)
         {
             ui.pageCampaign->CBMission->setCurrentIndex(i);
             break;