[Telepathy-commits] [telepathy-qt4/master] StatelessDBusProxy: warn if the bus name is unique (makes no sense)
Simon McVittie
simon.mcvittie at collabora.co.uk
Mon Jan 12 08:47:39 PST 2009
---
TelepathyQt4/Client/dbus-proxy.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/TelepathyQt4/Client/dbus-proxy.cpp b/TelepathyQt4/Client/dbus-proxy.cpp
index 8b92fcb..19d2a92 100644
--- a/TelepathyQt4/Client/dbus-proxy.cpp
+++ b/TelepathyQt4/Client/dbus-proxy.cpp
@@ -94,6 +94,10 @@ StatelessDBusProxy::StatelessDBusProxy(const QDBusConnection& dbusConnection,
const QString &busName, const QString &objectPath, QObject *parent)
: DBusProxy(dbusConnection, busName, objectPath, parent)
{
+ if (busName.startsWith(QChar(':'))) {
+ warning() <<
+ "Using StatelessDBusProxy for a unique name does not make sense";
+ }
}
// ==== StatefulDBusProxy ==============================================
--
1.5.6.5
More information about the Telepathy-commits
mailing list