[Telepathy-commits] [telepathy-qt4/master] Account: Proper check if Connection property is not a QDBusObjectPath.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Thu Feb 12 07:58:47 PST 2009


---
 TelepathyQt4/Client/account.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/TelepathyQt4/Client/account.cpp b/TelepathyQt4/Client/account.cpp
index 5ca870b..023c6cd 100644
--- a/TelepathyQt4/Client/account.cpp
+++ b/TelepathyQt4/Client/account.cpp
@@ -903,7 +903,7 @@ void Account::updateProperties(const QVariantMap &props)
 
     if (props.contains("Connection")) {
         QString path = qdbus_cast<QDBusObjectPath>(props["Connection"]).path();
-        if (!path) {
+        if (path.isEmpty()) {
             debug() << " The map contains \"Connection\" but it's empty as a QDBusObjectPath!";
             debug() << " Trying QString (known bug in some MC/dbus-glib versions)";
             path = qdbus_cast<QString>(props["Connection"]);
-- 
1.5.6.5



More information about the telepathy-commits mailing list