equal
deleted
inserted
replaced
1170 tmpdir.cd("Missions/Campaign"); |
1170 tmpdir.cd("Missions/Campaign"); |
1171 tmpdir.setFilter(QDir::Files); |
1171 tmpdir.setFilter(QDir::Files); |
1172 QStringList entries = tmpdir.entryList(QStringList("*#*.lua")); |
1172 QStringList entries = tmpdir.entryList(QStringList("*#*.lua")); |
1173 //entries.sort(); |
1173 //entries.sort(); |
1174 for(int i = 0; (i < entries.count()) && (i <= team.CampaignProgress); i++) |
1174 for(int i = 0; (i < entries.count()) && (i <= team.CampaignProgress); i++) |
1175 ui.pageCampaign->CBSelect->addItem(QString(entries[i]).replace(QRegExp("^(\\d+)#(.+)\\.lua"), QComboBox::tr("Mission") + " \\1: \\2"), QString(entries[i]).replace(QRegExp("^(.*)\\.lua"), "\\1")); |
1175 ui.pageCampaign->CBSelect->addItem(QString(entries[i]).replace(QRegExp("^(\\d+)#(.+)\\.lua"), QComboBox::tr("Mission") + " \\1: \\2").replace("_", " "), QString(entries[i]).replace(QRegExp("^(.*)\\.lua"), "\\1")); |
1176 } |
1176 } |
1177 |
1177 |
1178 void HWForm::AssociateFiles() |
1178 void HWForm::AssociateFiles() |
1179 { |
1179 { |
1180 bool success = true; |
1180 bool success = true; |