src/documentmanager.cpp

changeset 1159
6ad8cdcd88d9
parent 1156
c20ee66b6705
child 1192
317f4ce38f3f
child 1263
0256edecda54
--- a/src/documentmanager.cpp	Thu Feb 23 20:06:22 2017 +0200
+++ b/src/documentmanager.cpp	Thu Feb 23 20:18:39 2017 +0200
@@ -276,6 +276,7 @@
 		*numWarnings = 0;
 
 	DocumentLoader* loader = new DocumentLoader {&model, m_loadingMainFile};
+	connect(loader, SIGNAL(parseErrorMessage(QString)), this, SLOT(printParseErrorMessage(QString)));
 	loader->read(input);
 	loader->start();
 
@@ -291,6 +292,11 @@
 		*ok = not loader->hasAborted();
 }
 
+void DocumentManager::printParseErrorMessage(QString message)
+{
+	print(message);
+}
+
 LDDocument* DocumentManager::openDocument (QString path, bool search, bool implicit, LDDocument* fileToOverride,
 										   bool* aborted)
 {

mercurial