--- a/QTfrontend/gameuiconfig.cpp Sat Apr 10 20:48:09 2010 +0000
+++ b/QTfrontend/gameuiconfig.cpp Sat Apr 10 21:36:40 2010 +0000
@@ -94,10 +94,12 @@
QStringList GameUIConfig::GetTeamsList()
{
- QStringList teamslist = cfgdir->entryList(QStringList("*.cfg"));
+ QDir teamdir;
+ teamdir.cd(cfgdir->absolutePath() + "/Teams");
+ QStringList teamslist = teamdir.entryList(QStringList("*.ini"));
QStringList cleanedList;
for (QStringList::Iterator it = teamslist.begin(); it != teamslist.end(); ++it ) {
- QString tmpTeamStr=(*it).replace(QRegExp("^(.*)\\.cfg$"), "\\1");
+ QString tmpTeamStr=(*it).replace(QRegExp("^(.*)\\.ini$"), "\\1");
cleanedList.push_back(tmpTeamStr);
}
return cleanedList;