+ fix unit tests

This commit is contained in:
wmayer
2016-02-09 16:00:38 +01:00
parent 94c5ceddb8
commit cd3d36342f
4 changed files with 13 additions and 5 deletions

View File

@@ -1484,11 +1484,18 @@ static void init_resources()
void Application::initApplication(void)
{
static bool init = false;
if (init) {
Base::Console().Error("Tried to run Gui::Application::initApplication() twice!\n");
return;
}
try {
initTypes();
new Base::ScriptProducer( "FreeCADGuiInit", FreeCADGuiInit );
init_resources();
old_qtmsg_handler = qInstallMsgHandler(messageHandler);
init = true;
}
catch (...) {
// force to flush the log