src/documentloader.cpp

changeset 1159
6ad8cdcd88d9
parent 1147
a26568aa3cce
child 1186
eae8b3bce545
child 1236
861bf8ebb8ec
equal deleted inserted replaced
1158:35ceb74fe53e 1159:6ad8cdcd88d9
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;

mercurial