From: Dirk-Jan C. Binnema Date: Mon, 31 Jul 2006 06:41:00 +0000 (+0000) Subject: * small update (ignore ModestConf changes that are not for accounts) X-Git-Tag: git_migration_finished~4441 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=dbce09641769f49a02304326eb137d985211b125;ds=sidebyside * small update (ignore ModestConf changes that are not for accounts) pmo-trunk-r435 --- diff --git a/src/modest-account-mgr.c b/src/modest-account-mgr.c index ce093f3..d080cdc 100644 --- a/src/modest-account-mgr.c +++ b/src/modest-account-mgr.c @@ -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,