* small update (ignore ModestConf changes that are not for accounts)
authorDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Mon, 31 Jul 2006 06:41:00 +0000 (06:41 +0000)
committerDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Mon, 31 Jul 2006 06:41:00 +0000 (06:41 +0000)
pmo-trunk-r435

src/modest-account-mgr.c

index ce093f3..d080cdc 100644 (file)
@@ -120,6 +120,10 @@ on_key_change (ModestConf *conf, const gchar *key, ModestConfEvent event, gpoint
        
        account = account_from_key (key, &is_account_key, &is_server_account);
 
+       /* if this is not an account-related key change, ignore */
+       if (!account)
+               return;
+
        /* account was removed -- emit this, even if the account was disabled */
        if (is_account_key && event == MODEST_CONF_EVENT_KEY_UNSET) {
                g_signal_emit (G_OBJECT(self), signals[ACCOUNT_REMOVED_SIGNAL], 0,