Proper get the account protocol in mailboxes
authorJose Dapena Paz <jdapena@igalia.com>
Fri, 17 Apr 2009 16:39:50 +0000 (16:39 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Fri, 17 Apr 2009 16:39:50 +0000 (16:39 +0000)
pmo-trunk-r8921

src/modest-account-mgr-helpers.c

index 6565f7a..c80fd30 100644 (file)
@@ -869,7 +869,7 @@ modest_account_mgr_get_from_string (ModestAccountMgr *self, const gchar* name, c
                                                                        name,
                                                                        TNY_ACCOUNT_TYPE_TRANSPORT);
        if (transport_account) {
-               proto = modest_account_mgr_get_string (self, name, MODEST_ACCOUNT_PROTO, TRUE);
+               proto = modest_account_mgr_get_string (self, transport_account, MODEST_ACCOUNT_PROTO, TRUE);
                if (proto != NULL) {
                        ModestProtocol *protocol = 
                                modest_protocol_registry_get_protocol_by_name (modest_runtime_get_protocol_registry (),