diff --git a/openbr/plugins/gui.cpp b/openbr/plugins/gui.cpp index 557ac9c..9ccd6d4 100644 --- a/openbr/plugins/gui.cpp +++ b/openbr/plugins/gui.cpp @@ -592,8 +592,9 @@ public: template void initActual() { - if (!Globals->useGui) - return; + if (!Globals->useGui) { + 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()); + } if (displayBuffer) delete displayBuffer;