QTfrontend/hwform.cpp
changeset 14605 13b22e2f2010
parent 14530 029f40c609b4
child 14606 1d3f8cf48831
--- a/QTfrontend/hwform.cpp	Wed Jan 16 00:37:26 2019 +0100
+++ b/QTfrontend/hwform.cpp	Wed Jan 16 01:39:58 2019 +0100
@@ -2145,11 +2145,11 @@
 {
     Q_UNUSED(index);
 
-    QString missionTitle = ui.pageCampaign->CBMission->currentText();
+    QString missionTitle = ui.pageCampaign->CBMission->currentData().toString();
     UpdateCampaignPage(0);
     for(int i=0;i<ui.pageCampaign->CBMission->count();i++)
     {
-        if (ui.pageCampaign->CBMission->itemData(i)==missionTitle)
+        if (ui.pageCampaign->CBMission->itemData(i).toString() == missionTitle)
         {
             ui.pageCampaign->CBMission->setCurrentIndex(i);
             break;