From 16da43922493ea2693ac5cf75d190cd7a7da1b9a Mon Sep 17 00:00:00 2001 From: Charles Otto Date: Mon, 31 Mar 2014 12:54:20 -0400 Subject: [PATCH] Add a qFatal when initializing GUI transforms when Globals->useGui is not set. --- openbr/plugins/gui.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- libgit2 0.21.4