X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=main%2Fglobal.cpp;h=962ac41c7b711d2be607b22d036e34776d1aec84;hp=7a47771bda6269740277b3bd8e8955a31aa6490c;hb=13e45fd2d89d3704aebfba1031cfc7b23aad73d2;hpb=ba8f57d654b07d77cc91a2b901ad3b664a31ffcf diff --git a/main/global.cpp b/main/global.cpp index 7a47771b..962ac41c 100644 --- a/main/global.cpp +++ b/main/global.cpp @@ -21,9 +21,9 @@ #include "global.h" #include "logger.h" #include "core.h" +#include "message.h" -#include -#include +#include #include extern void messageHandler(QtMsgType type, const char *msg); @@ -31,6 +31,8 @@ extern void messageHandler(QtMsgType type, const char *msg); Global::Global() { if(global) qFatal("Trying to instantiate more than one Global object!"); qInstallMsgHandler(messageHandler); + qRegisterMetaType("Message"); + qRegisterMetaTypeStreamOperators("Message"); //initIconMap(); }