fix segmentation fault when caling setupWithoutGUI

This commit is contained in:
wmayer 2016-11-29 19:29:12 +01:00
parent 43aae3db37
commit 537cfb2d48

View File

@ -453,8 +453,10 @@ Application::Application(bool GUIenabled)
// instanciate the workbench dictionary
_pcWorkbenchDictionary = PyDict_New();
createStandardOperations();
MacroCommand::load();
if (GUIenabled) {
createStandardOperations();
MacroCommand::load();
}
ObjectLabelObserver::instance();
}