#include "identity.h"
#include "settings.h"
#include <QString>
+#include <QTimer>
#include <QTranslator>
#if defined BUILD_CORE
#ifndef BUILD_CORE
QtUi *gui = new QtUi();
Client::init(gui);
- gui->init();
+ // init gui only after the event loop has started
+ QTimer::singleShot(0, gui, SLOT(init()));
+ //gui->init();
#endif
#ifndef BUILD_QTUI