equal
deleted
inserted
replaced
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 } |