Commit 91403317c7fd12f836f99dbd6aff1fbc0f9dc351
1 parent
16da4392
Switch to a warning when creating GUI transforms without Globals->useGui
This allows br -objects to work, and the transform will then just crash in project.
Showing
1 changed file
with
2 additions
and
1 deletions
openbr/plugins/gui.cpp
| @@ -593,7 +593,8 @@ public: | @@ -593,7 +593,8 @@ public: | ||
| 593 | void initActual() | 593 | void initActual() |
| 594 | { | 594 | { |
| 595 | if (!Globals->useGui) { | 595 | if (!Globals->useGui) { |
| 596 | - qFatal("GUI transform %s created without enabling GUI support.\nRun \"br -gui ...\" to enable GUI support from the command line, or set\nGlobals->useGui to true.", this->metaObject()->className()); | 596 | + qWarning("GUI transform %s created without enabling GUI support.\nRun \"br -gui ...\" to enable GUI support from the command line, or set\nGlobals->useGui to true.", this->metaObject()->className()); |
| 597 | + return; | ||
| 597 | } | 598 | } |
| 598 | 599 | ||
| 599 | if (displayBuffer) | 600 | if (displayBuffer) |