QTfrontend/hwform.cpp
branchspacecampaign
changeset 9281 49c77a41ae96
parent 9278 33a30ce9782f
child 9284 13b76fa362b4
--- a/QTfrontend/hwform.cpp	Fri Jun 28 18:55:01 2013 +0300
+++ b/QTfrontend/hwform.cpp	Fri Jun 28 19:05:41 2013 +0300
@@ -1903,24 +1903,13 @@
     QString campaignName = ui.pageCampaign->CBCampaign->currentText();
     QString tName = team.name();
     QStringList missionEntries = getCampMissionList2(campaignName,tName);
-    unsigned int n = missionEntries.count();
-    unsigned int m = getCampProgress(tName, campaignName);
 
 	//unlockedMissionsHash = getUnlockedMissions2(campaignName, tName);
     // if the campaign name changes update the campaignMissionDescriptions list
     // this will be used later in UpdateCampaignPageMission() to update
     // the mission description in the campaign page
-    bool updateMissionList = false;
-    if(previousCampaignName.compare(campaignName)!=0 ||
-            previousTeamName.compare(tName) != 0)
-    {
-        if (previousTeamName.compare(tName) != 0 &&
-                previousTeamName.compare("") != 0)
-            index = qMin(m + 1, n);
-        previousCampaignName = campaignName;
-        previousTeamName = tName;
-        updateMissionList = true;
-    }
+	campaignMissionDescriptions.clear();
+	ui.pageCampaign->CBMission->clear();
     campaignMissionDescriptions = getDescriptions(campaignName,tName);
     for(int i=0;i<missionEntries.size();i++)
     {