From: Sergio Villar Senin Date: Tue, 29 May 2007 10:38:22 +0000 (+0000) Subject: * Do not emit account_changed when the value that has changed is last_updated. This... X-Git-Tag: git_migration_finished~3501 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=2c8f3fa95ab49b3b2334e28383b5409ab16b4002;hp=fcc952a8e591e8fbf544b18dfc445e3fde6a8289 * Do not emit account_changed when the value that has changed is last_updated. This saves us a call to update_model in the folder view pmo-trunk-r1985 --- diff --git a/src/modest-tny-account-store.c b/src/modest-tny-account-store.c index d2ecec6..79717d3 100644 --- a/src/modest-tny-account-store.c +++ b/src/modest-tny-account-store.c @@ -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') */