src/file.cpp

changeset 519
63135a8abd41
parent 518
623c01862eb8
child 522
afa691788bdb
equal deleted inserted replaced
518:623c01862eb8 519:63135a8abd41
306 // Check for parse errors and warn about tthem 306 // Check for parse errors and warn about tthem
307 if (obj->getType() == LDObject::Error) 307 if (obj->getType() == LDObject::Error)
308 { log ("Couldn't parse line #%1: %2", m_progress + 1, static_cast<LDError*> (obj)->reason); 308 { log ("Couldn't parse line #%1: %2", m_progress + 1, static_cast<LDError*> (obj)->reason);
309 309
310 if (m_warningsPointer) 310 if (m_warningsPointer)
311 (*m_warningsPointer) ++; 311 (*m_warningsPointer)++;
312 } 312 }
313 313
314 m_objs << obj; 314 m_objs << obj;
315 setProgress (i); 315 setProgress (i);
316 316
318 if (concurrent()) 318 if (concurrent())
319 dlg->updateProgress (i); 319 dlg->updateProgress (i);
320 } 320 }
321 321
322 // If we're done now, tell the environment we're done and stop. 322 // If we're done now, tell the environment we're done and stop.
323 if (i >= ( (int) lines().size()) - 1) 323 if (i >= ((int) lines().size()) - 1)
324 { emit workDone(); 324 { emit workDone();
325 setDone (true); 325 setDone (true);
326 return; 326 return;
327 } 327 }
328 328

mercurial