src/documentloader.cpp

changeset 1159
6ad8cdcd88d9
parent 1147
a26568aa3cce
child 1186
eae8b3bce545
child 1236
861bf8ebb8ec
--- a/src/documentloader.cpp	Thu Feb 23 20:06:22 2017 +0200
+++ b/src/documentloader.cpp	Thu Feb 23 20:18:39 2017 +0200
@@ -118,7 +118,7 @@
 		// Check for parse errors and warn about them
 		if (obj->type() == LDObjectType::Error)
 		{
-			print ("Couldn't parse line #%1: %2", progress() + 1, static_cast<LDError*> (obj)->reason());
+			emit parseErrorMessage(format(tr("Couldn't parse line #%1: %2"), progress() + 1, static_cast<LDError*> (obj)->reason()));
 			++m_warningCount;
 		}
 	}
@@ -151,4 +151,4 @@
 void DocumentLoader::abort()
 {
 	m_hasAborted = true;
-}
\ No newline at end of file
+}

mercurial