diff options
author | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2012-04-03 18:46:11 -0300 |
---|---|---|
committer | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2012-04-03 18:46:11 -0300 |
commit | 7711932beeac265620a7e73bdf37898e44beacaf (patch) | |
tree | 96584f4867c270cf86934601315fdc6817fbb6ba /TelepathyQt | |
parent | 28827058019699a323f57ef2351f1776a9be8e93 (diff) |
BaseProtocol: Check for isRegistered in registerObject.
Diffstat (limited to 'TelepathyQt')
-rw-r--r-- | TelepathyQt/base-protocol.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/TelepathyQt/base-protocol.cpp b/TelepathyQt/base-protocol.cpp index 5f613f70..c6316038 100644 --- a/TelepathyQt/base-protocol.cpp +++ b/TelepathyQt/base-protocol.cpp @@ -349,6 +349,10 @@ bool BaseProtocol::plugInterface(const AbstractProtocolInterfacePtr &interface) bool BaseProtocol::registerObject(const QString &busName, const QString &objectPath, DBusError *error) { + if (isRegistered()) { + return true; + } + foreach (const AbstractProtocolInterfacePtr &iface, mPriv->interfaces) { iface->registerInterface(dbusObject()); } |