* Do not emit account_changed when the value that has changed is last_updated. This...
authorSergio Villar Senin <svillar@igalia.com>
Tue, 29 May 2007 10:38:22 +0000 (10:38 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Tue, 29 May 2007 10:38:22 +0000 (10:38 +0000)
pmo-trunk-r1985

src/modest-tny-account-store.c

index d2ecec6..79717d3 100644 (file)
@@ -254,6 +254,10 @@ on_account_changed (ModestAccountMgr *acc_mgr, const gchar *account,
        ModestTnyAccountStore *self = MODEST_TNY_ACCOUNT_STORE(user_data);
        ModestTnyAccountStorePrivate *priv = MODEST_TNY_ACCOUNT_STORE_GET_PRIVATE(self);
        
+       /* Ignore the change if it's a change in the last_updated value */
+       if (g_str_has_suffix (key, MODEST_ACCOUNT_LAST_UPDATED))
+               return;
+
        /* FIXME: make this more finegrained; changes do not really affect _all_
         * accounts, and some do not affect tny accounts at all (such as 'last_update')
         */