QTfrontend/game.cpp
changeset 2377 f3fab2b09e0c
parent 2049 243d363546e7
child 2382 bfd378dfc4e7
equal deleted inserted replaced
2376:ece7b87f1334 2377:f3fab2b09e0c
   145 	if(!file.open(QFile::ReadOnly))
   145 	if(!file.open(QFile::ReadOnly))
   146 	{
   146 	{
   147 		emit ErrorMessage(tr("Error reading training config file"));
   147 		emit ErrorMessage(tr("Error reading training config file"));
   148 		return;
   148 		return;
   149 	}
   149 	}
   150 	
   150 
   151 	QTextStream stream(&file);
   151 	QTextStream stream(&file);
   152 	while(!stream.atEnd())
   152 	while(!stream.atEnd())
   153 	{
   153 	{
   154 		HWProto::addStringToBuffer(traincfg, "e" + stream.readLine());
   154 		HWProto::addStringToBuffer(traincfg, "e" + stream.readLine());
   155 	}
   155 	}