QTfrontend/hwform.cpp
changeset 11955 d72a177dbaea
parent 11951 b05db9ca6e1c
child 11957 1201fc039e24
--- a/QTfrontend/hwform.cpp	Wed May 04 04:32:31 2016 +0200
+++ b/QTfrontend/hwform.cpp	Wed May 04 04:44:41 2016 +0200
@@ -1941,6 +1941,14 @@
             break;
         }
     }
+    int i = ui.pageCampaign->CBCampaign->currentIndex();
+    QString campaignName = ui.pageCampaign->CBCampaign->currentText().replace(QString(" "),QString("_"));
+    HWTeam team(ui.pageCampaign->CBTeam->currentText());
+    QString tName = team.name();
+    if(isCampWon(campaignName, tName))
+        ui.pageCampaign->CBCampaign->setItemIcon(i, finishedIcon);
+    else
+        ui.pageCampaign->CBCampaign->setItemIcon(i, QIcon());
 }
 
 // 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]