X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcoreapplication.cpp;h=7426f1773a2e29b5abd462c33308a43e39d31a09;hb=ce1feba3940c27dbce5eff9fa9705dce8240a64a;hp=3c12327596f8292388a99aba8ab490313f57b7a1;hpb=9d54503555534a2c554f09a33df6afa33d6308ec;p=quassel.git diff --git a/src/core/coreapplication.cpp b/src/core/coreapplication.cpp index 3c123275..7426f177 100644 --- a/src/core/coreapplication.cpp +++ b/src/core/coreapplication.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2014 by the Quassel Project * + * Copyright (C) 2005-2016 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -62,6 +62,17 @@ bool CoreApplicationInternal::init() } +bool CoreApplicationInternal::reloadConfig() +{ + if (_coreCreated) { + // Currently, only reloading SSL certificates is supported + return Core::reloadCerts(); + } else { + return false; + } +} + + /*****************************************************************************/ CoreApplication::CoreApplication(int &argc, char **argv) @@ -85,8 +96,22 @@ CoreApplication::~CoreApplication() bool CoreApplication::init() { if (Quassel::init() && _internal->init()) { +#if QT_VERSION < 0x050000 qInstallMsgHandler(Logger::logMessage); +#else + qInstallMessageHandler(Logger::logMessage); +#endif return true; } return false; } + + +bool CoreApplication::reloadConfig() +{ + if (_internal) { + return _internal->reloadConfig(); + } else { + return false; + } +}