QTfrontend/hwform.cpp
changeset 14489 41f1b611cdd2
parent 14488 4edcb655dc5a
child 14490 bfacce4ff920
--- a/QTfrontend/hwform.cpp	Tue Dec 18 22:22:03 2018 +0100
+++ b/QTfrontend/hwform.cpp	Tue Dec 18 22:27:13 2018 +0100
@@ -2023,13 +2023,12 @@
 
         for(unsigned int i = 0; i < n; i++)
         {
-            QListWidgetItem* item = listWidget->takeItem(i);
+            QListWidgetItem* item = listWidget->item(i);
             QString missionName = QString(item->data(Qt::UserRole).toString()).replace(QString(" "),QString("_"));
             if(isMissionWon(missionName, tName))
                 item->setIcon(finishedIcon);
             else
                 item->setIcon(notFinishedIcon);
-            listWidget->insertItem(i, item);
         }
     }
 }