Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Leander Schulten
Lichtsteuerung
Commits
ba8490c8
Commit
ba8490c8
authored
Dec 20, 2018
by
Leander Schulten
Browse files
Show error message when components can not be loaded
parent
f1091a01
Changes
1
Show whitespace changes
Inline
Side-by-side
programblockeditor.cpp
View file @
ba8490c8
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment