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

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