* some crash fixes - in some cases, modest core'd because of errors when copying...
[modest] / src / modest-tny-account-store.c
index bd08cb1..6af53da 100644 (file)
@@ -352,11 +352,10 @@ on_account_changed (ModestAccountMgr *acc_mgr, const gchar *account,
 {
        ModestTnyAccountStore *self = MODEST_TNY_ACCOUNT_STORE(user_data);
        
-       #if 0
        /* Ignore the change if it's a change in the last_updated value */
-       if (g_str_has_suffix (key, MODEST_ACCOUNT_LAST_UPDATED))
+       if (g_slist_length ((GSList *)keys) == 1 &&
+           g_str_has_suffix ((const gchar *) keys->data, MODEST_ACCOUNT_LAST_UPDATED))
                return;
-       #endif
 
        /* 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')
@@ -971,7 +970,7 @@ modest_tny_account_store_alert (TnyAccountStore *self, TnyAlertType type,
                         * This is just so the testers can give us more information: */
                        /* prompt = _("Modest account not yet fully configured."); */
                        prompt = g_strdup_printf(
-                               "%s\n (Internal error message, often very misleading:\n%s", 
+                               "%s\n (Internal error message, often very misleading):\n%s", 
                                _("Incorrect Account Settings"), 
                                error->message);