[telepathy-qt4/master] Account: Use TELEPATHY_QT4_ERROR_OBJECT_REMOVED as error code for invalidation when the account is removed.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Mon Nov 9 13:28:43 PST 2009
---
TelepathyQt4/account.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/TelepathyQt4/account.cpp b/TelepathyQt4/account.cpp
index 7c4c763..d845175 100644
--- a/TelepathyQt4/account.cpp
+++ b/TelepathyQt4/account.cpp
@@ -190,7 +190,8 @@ Account::Private::~Private()
*
* If the account is deleted from the AccountManager, this object
* will not be deleted automatically; however, it will emit invalidated()
- * and will cease to be useful.
+ * with error code %TELEPATHY_QT4_ERROR_OBJECT_REMOVED and will cease to
+ * be useful.
*/
const Feature Account::FeatureCore = Feature(Account::staticMetaObject.className(), 0, true);
@@ -1581,8 +1582,7 @@ void Account::onRemoved()
{
mPriv->valid = false;
mPriv->enabled = false;
- // This is the closest error we have at the moment
- invalidate(QLatin1String(TELEPATHY_ERROR_CANCELLED),
+ invalidate(QLatin1String(TELEPATHY_QT4_ERROR_OBJECT_REMOVED),
QLatin1String("Account removed from AccountManager"));
}
--
1.5.6.5
More information about the telepathy-commits
mailing list