Initialize mission completion status on frontend load
authorWuzzy <Wuzzy2@mail.ru>
Wed, 02 Jan 2019 03:30:54 +0100
changeset 14514 64d73515abba
parent 14512 184df3900ec4
child 14515 bcb418530a1c
Initialize mission completion status on frontend load
QTfrontend/hwform.cpp
--- a/QTfrontend/hwform.cpp	Tue Jan 01 02:25:18 2019 +0100
+++ b/QTfrontend/hwform.cpp	Wed Jan 02 03:30:54 2019 +0100
@@ -2070,10 +2070,16 @@
     {
         int index = ui.pageCampaign->CBTeam->findData(lastTeam, Qt::DisplayRole);
         if(index != -1)
+        {
             ui.pageCampaign->CBTeam->setCurrentIndex(index);
+            UpdateCampaignPageTeam(index);
+        }
         index = ui.pageTraining->CBTeam->findData(lastTeam, Qt::DisplayRole);
         if(index != -1)
+        {
             ui.pageTraining->CBTeam->setCurrentIndex(index);
+            UpdateTrainingPageTeam(index);
+        }
     }
 }