--- a/QTfrontend/gameuiconfig.cpp Sun Sep 03 18:01:34 2006 +0000
+++ b/QTfrontend/gameuiconfig.cpp Sat Sep 09 16:59:10 2006 +0000
@@ -94,7 +94,13 @@
QStringList GameUIConfig::GetTeamsList()
{
- return cfgdir->entryList(QStringList("*.cfg"));
+ QStringList teamslist = cfgdir->entryList(QStringList("*.cfg"));
+ QStringList cleanedList;
+ for (QStringList::Iterator it = teamslist.begin(); it != teamslist.end(); ++it ) {
+ QString tmpTeamStr=(*it).replace(QRegExp("^(.*).cfg$"), "\\1");
+ cleanedList.push_back(tmpTeamStr);
+ }
+ return cleanedList;
}
void GameUIConfig::SaveOptions()