Commit ba8490c8 authored by Leander Schulten's avatar Leander Schulten
Browse files

Show error message when components can not be loaded

parent f1091a01
......@@ -2,6 +2,7 @@
#include <QQmlEngine>
#include <QPropertyAnimation>
#include "programms/property.hpp"
#include "errornotifier.h"
QQmlEngine* ProgramBlockEditor::engine = nullptr;
......@@ -259,11 +260,13 @@ void ProgramBlockEditor::recreateView(){
}
if(programBlockEntry.isError()){
qDebug() << programBlockEntry.errorString();
ErrorNotifier::showError(programBlockEntry.errorString());
for(const auto & e : programBlockEntry.errors()){
qDebug() << e;
}
}if(programBlockConnection.isError()){
qDebug() << programBlockConnection.errorString();
ErrorNotifier::showError(programBlockConnection.errorString());
for(const auto & e : programBlockConnection.errors()){
qDebug() << e;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment