From dbce09641769f49a02304326eb137d985211b125 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Mon, 31 Jul 2006 06:41:00 +0000 Subject: [PATCH] * small update (ignore ModestConf changes that are not for accounts) pmo-trunk-r435 --- src/modest-account-mgr.c | 4 ++++ 1 file changed, 4 insertions(+) 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, -- 1.7.9.5