QTfrontend/hwform.cpp
changeset 7636 10caa79d4a80
parent 7628 bc7b1d228a2c
child 7679 bfa26daad684
--- a/QTfrontend/hwform.cpp	Fri Aug 31 12:06:48 2012 +0200
+++ b/QTfrontend/hwform.cpp	Fri Aug 31 13:36:00 2012 +0200
@@ -1613,7 +1613,7 @@
     unsigned int n = missionEntries.count();
     unsigned int m = getCampProgress(tName, campaignName);
 
-    for (unsigned int i = min(m + 1, n); i > 0; i--)
+    for (unsigned int i = qMin(m + 1, n); i > 0; i--)
     {
         ui.pageCampaign->CBMission->addItem(QString("Mission %1: ").arg(i) + QString(missionEntries[i-1]), QString(missionEntries[i-1]));
     }