116 LDObject* obj = _model->addFromString(line); |
116 LDObject* obj = _model->addFromString(line); |
117 |
117 |
118 // Check for parse errors and warn about them |
118 // Check for parse errors and warn about them |
119 if (obj->type() == LDObjectType::Error) |
119 if (obj->type() == LDObjectType::Error) |
120 { |
120 { |
121 print ("Couldn't parse line #%1: %2", progress() + 1, static_cast<LDError*> (obj)->reason()); |
121 emit parseErrorMessage(format(tr("Couldn't parse line #%1: %2"), progress() + 1, static_cast<LDError*> (obj)->reason())); |
122 ++m_warningCount; |
122 ++m_warningCount; |
123 } |
123 } |
124 } |
124 } |
125 |
125 |
126 m_progress = i; |
126 m_progress = i; |