X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcore.cpp;h=6e77294b54a750ad22d8b9b4b4227e4674ba54a0;hp=2634dd2852fb8e04ba240601f6579b7f095d042b;hb=39328183a6a87c6eb10a9dbbffcd5d65bf154a1f;hpb=ddfb1d2574c4bffd180361a80df9b1cd584bb040 diff --git a/src/core/core.cpp b/src/core/core.cpp index 2634dd28..6e77294b 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -36,9 +36,8 @@ #include "types.h" #include "util.h" -// Currently building with LDAP bindings is optional. #ifdef HAVE_LDAP -#include "ldapauthenticator.h" +# include "ldapauthenticator.h" #endif // migration related @@ -71,6 +70,8 @@ public: Core::Core() : Singleton{this} { + Q_INIT_RESOURCE(sql); + // Parent all QObject-derived attributes, so when the Core instance gets moved into another // thread, they get moved with it _server.setParent(this); @@ -91,10 +92,6 @@ void Core::init() { _startTime = QDateTime::currentDateTime().toUTC(); // for uptime :) - if (Quassel::runMode() == Quassel::RunMode::CoreOnly) { - Quassel::loadTranslation(QLocale::system()); - } - // check settings version // so far, we only have 1 CoreSettings s; @@ -786,7 +783,7 @@ void Core::setupClientSession(RemotePeer *peer, UserId uid) Q_ASSERT(handler); // From now on everything is handled by the client session - disconnect(handler, 0, this, 0); + disconnect(handler, nullptr, this, nullptr); _connectingClients.remove(handler); handler->deleteLater();