From 2c8f3fa95ab49b3b2334e28383b5409ab16b4002 Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Tue, 29 May 2007 10:38:22 +0000 Subject: [PATCH] * 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 --- src/modest-tny-account-store.c | 4 ++++ 1 file changed, 4 insertions(+) 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') */ -- 1.7.9.5