X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fquassel.cpp;h=66aae90b2605c3a50e013cc457004e02136448da;hb=0e80eb98d55efe53d280b38984426318317bcb1a;hp=62b8b3a8a4a19beb49309ff3aeeeec8b5bf704a9;hpb=12fbdede1ac2d35359eab076ccecb203c04139c4;p=quassel.git diff --git a/src/common/quassel.cpp b/src/common/quassel.cpp index 62b8b3a8..66aae90b 100644 --- a/src/common/quassel.cpp +++ b/src/common/quassel.cpp @@ -29,18 +29,19 @@ #include #include #include +#include #include #include #include -#include -#include "message.h" +#include "bufferinfo.h" #include "identity.h" +#include "logger.h" +#include "message.h" #include "network.h" -#include "bufferinfo.h" -#include "types.h" +#include "protocol.h" #include "syncableobject.h" -#include "logger.h" +#include "types.h" Quassel::BuildInfo Quassel::_buildInfo; AbstractCliParser *Quassel::_cliParser = 0; @@ -194,6 +195,8 @@ void Quassel::registerMetaTypes() qRegisterMetaTypeStreamOperators("AccountId"); qRegisterMetaTypeStreamOperators("MsgId"); + qRegisterMetaType("Protocol::SessionState"); + // Versions of Qt prior to 4.7 didn't define QVariant as a meta type if (!QMetaType::type("QVariant")) { qRegisterMetaType("QVariant"); @@ -495,7 +498,7 @@ void Quassel::loadTranslation(const QLocale &locale) quasselTranslator->setObjectName("QuasselTr"); qApp->installTranslator(quasselTranslator); -#if QT_VERSION >= 0x040800 +#if QT_VERSION >= 0x040800 && !defined Q_OS_MAC bool success = qtTranslator->load(locale, QString("qt_"), translationDirPath()); if (!success) qtTranslator->load(locale, QString("qt_"), QLibraryInfo::location(QLibraryInfo::TranslationsPath));