Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Leander Schulten
Lichtsteuerung
Commits
277ba819
Commit
277ba819
authored
Sep 27, 2019
by
Leander Schulten
Browse files
UX: Show better error message when the loading of the DMX driver fails.
parent
1d1aedb1
Pipeline
#188375
passed with stage
in 4 minutes and 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
277ba819
...
...
@@ -304,9 +304,9 @@ int main(int argc, char *argv[]) {
// Treiber laden
#define USE_DUMMY_DRIVER
#ifndef USE_DUMMY_DRIVER
if
(
!
Driver
::
loadAndStartDriver
(
settings
.
getDriverFilePath
())){
ErrorNotifier
::
showError
(
"Cant start
driver."
);
}
else
{
if
(
!
Driver
::
loadAndStartDriver
(
settings
.
getDriverFilePath
()))
{
ErrorNotifier
::
showError
(
QStringLiteral
(
"Can
`
t start
the DMX driver. The DMX output will not work. You can load a different driver in the Settings tab."
)
);
}
else
{
Driver
::
getCurrentDriver
()
->
setWaitTime
(
std
::
chrono
::
milliseconds
(
40
));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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