refs #199 , fail safe method to register contexts with DBus server, easer way to initialize in runtime

This commit is contained in:
Klaus Basan
2014-04-08 14:42:46 +02:00
parent e7c9d7d294
commit 94ed481b25
5 changed files with 6 additions and 5 deletions

View File

@@ -33,6 +33,7 @@ namespace BlackCore
//! \brief Register myself in DBus
CContextSettings *registerWithDBus(CDBusServer *server)
{
if (!server || this->m_mode != CRuntimeConfig::LocalInDbusServer) return this;
server->addObject(IContextSettings::ObjectPath(), this);
return this;
}