equal
deleted
inserted
replaced
115 cfgdir.cd(".hedgewars"); |
115 cfgdir.cd(".hedgewars"); |
116 |
116 |
117 list = cfgdir.entryList(QStringList("*.cfg")); |
117 list = cfgdir.entryList(QStringList("*.cfg")); |
118 for (QStringList::Iterator it = list.begin(); it != list.end(); ++it ) |
118 for (QStringList::Iterator it = list.begin(); it != list.end(); ++it ) |
119 { |
119 { |
120 ui.CBTeamName->addItem((*it).replace(QRegExp("^(.*).cfg"), "\\1")); |
120 ui.CBTeamName->addItem((*it).replace(QRegExp("^(.*).cfg$"), "\\1")); |
121 } |
121 } |
122 |
122 |
123 |
123 |
124 QFile settings(cfgdir.absolutePath() + "/options"); |
124 QFile settings(cfgdir.absolutePath() + "/options"); |
125 if (settings.open(QIODevice::ReadOnly)) |
125 if (settings.open(QIODevice::ReadOnly)) |