QTfrontend/hwform.cpp
changeset 37 2b7f2a43b999
parent 36 a803a00a3272
child 41 5d7a505875cd
equal deleted inserted replaced
36:a803a00a3272 37:2b7f2a43b999
   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))