QTfrontend/gameuiconfig.cpp
changeset 4817 cd7ef863afca
parent 4809 9c7d5f802618
child 4844 20b81fafd236
equal deleted inserted replaced
4815:f2a3e1a51f4d 4817:cd7ef863afca
    91 
    91 
    92 QStringList GameUIConfig::GetTeamsList()
    92 QStringList GameUIConfig::GetTeamsList()
    93 {
    93 {
    94     QDir teamdir;
    94     QDir teamdir;
    95     teamdir.cd(cfgdir->absolutePath() + "/Teams");
    95     teamdir.cd(cfgdir->absolutePath() + "/Teams");
    96     QStringList teamslist = teamdir.entryList(QStringList("*.hwt"));
    96     QStringList teamslist = teamdir.entryList(QStringList("*.hwt"),QDir::Files|QDir::Hidden);
    97     QStringList cleanedList;
    97     QStringList cleanedList;
    98     for (QStringList::Iterator it = teamslist.begin(); it != teamslist.end(); ++it ) {
    98     for (QStringList::Iterator it = teamslist.begin(); it != teamslist.end(); ++it ) {
    99             QString tmpTeamStr=(*it).replace(QRegExp("^(.*)\\.hwt$"), "\\1");
    99             QString tmpTeamStr=(*it).replace(QRegExp("^(.*)\\.hwt$"), "\\1");
   100             cleanedList.push_back(tmpTeamStr);
   100             cleanedList.push_back(tmpTeamStr);
   101     }
   101     }