QTfrontend/gameuiconfig.cpp
changeset 3333 560e2766c445
parent 3236 4ab3917d7d44
child 3690 c247dee9e1c0
--- 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;