diff --git a/openbr/plugins/gui.cpp b/openbr/plugins/gui.cpp index ee35340..2e614a2 100644 --- a/openbr/plugins/gui.cpp +++ b/openbr/plugins/gui.cpp @@ -413,13 +413,13 @@ private: }; -class DisplayGUI : public QMainWindow +class GUIWindow : public QMainWindow { Q_OBJECT public: - DisplayGUI(QWidget * parent = NULL) : QMainWindow(parent) + GUIWindow(QWidget * parent = NULL) : QMainWindow(parent) { centralWidget = new QWidget(); layout = new QHBoxLayout(); @@ -797,7 +797,7 @@ class ElicitTransform : public ShowTransform Q_OBJECT - DisplayGUI *gui; + GUIWindow *gui; public: ElicitTransform() : ShowTransform() @@ -837,14 +837,16 @@ public: void init() { - initActual(); + initActual(); } template void initActual() { - if (!Globals->useGui) + if (!Globals->useGui) { + 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()); return; + } TimeVaryingTransform::init();