diff -r 4feced261c68 -r de822cd3df3a QTfrontend/hwform.cpp --- a/QTfrontend/hwform.cpp Tue Jan 21 22:38:13 2014 +0100 +++ b/QTfrontend/hwform.cpp Tue Jan 21 22:43:06 2014 +0100 @@ -1903,15 +1903,15 @@ Q_UNUSED(index); HWTeam team(ui.pageCampaign->CBTeam->currentText()); QString campaignName = ui.pageCampaign->CBCampaign->currentText().replace(QString(" "),QString("_")); - QString tName = team.name(); - - campaignMissionInfo = getCampMissionList(campaignName,tName); - ui.pageCampaign->CBMission->clear(); - + QString tName = team.name(); + + campaignMissionInfo = getCampMissionList(campaignName,tName); + ui.pageCampaign->CBMission->clear(); + for(int i=0;iCBMission->addItem(QString(campaignMissionInfo[i].name), QString(campaignMissionInfo[i].name)); - } + } } void HWForm::UpdateCampaignPageMission(int index) @@ -1923,7 +1923,7 @@ if(index > -1 && index < campaignMissionInfo.count()) { ui.pageCampaign->lbltitle->setText("

"+ui.pageCampaign->CBMission->currentText()+"

"); ui.pageCampaign->lbldescription->setText(campaignMissionInfo[index].description); - ui.pageCampaign->btnPreview->setIcon(QIcon(campaignMissionInfo[index].image)); + ui.pageCampaign->btnPreview->setIcon(QIcon(campaignMissionInfo[index].image)); } } @@ -1935,12 +1935,12 @@ UpdateCampaignPage(0); for(int i=0;iCBMission->count();i++) { - if (ui.pageCampaign->CBMission->itemText(i)==missionTitle) - { - ui.pageCampaign->CBMission->setCurrentIndex(i); - break; - } - } + if (ui.pageCampaign->CBMission->itemText(i)==missionTitle) + { + ui.pageCampaign->CBMission->setCurrentIndex(i); + break; + } + } } // used for --set-everything [screen width] [screen height] [color dept] [volume] [enable music] [enable sounds] [language file] [full screen] [show FPS] [alternate damage] [timer value] [reduced quality]