diff --git a/Fltk/GUI.cpp b/Fltk/GUI.cpp index bb11093cf571fc1fadce41a853fec8110e6c7497..c098616c6ad42f8070c550b0b90e502e78c6572e 100644 --- a/Fltk/GUI.cpp +++ b/Fltk/GUI.cpp @@ -42,6 +42,7 @@ extern Context_T CTX; static int globalShortcut(int event) { + if(!GUI::available()) return 0; return GUI::instance()->testGlobalShortcuts(event); }