From b496286dbe63dd23877d206cd983f1808cf88246 Mon Sep 17 00:00:00 2001 From: Armin Burgmeier Date: Wed, 18 Jul 2007 13:49:22 +0000 Subject: [PATCH] 2007-07-18 Armin Burgmeier * src/modest-tny-account-store.c: (get_server_accounts): Set parent modest account name for each connection-specific transport account so that special folders of such an account can be looked up. This fixes a crash when changing account settings. This might also be related to projects.maemo.org bug NB#63594. pmo-trunk-r2751 --- ChangeLog2 | 9 +++++++++ src/modest-tny-account-store.c | 1 + 2 files changed, 10 insertions(+) diff --git a/ChangeLog2 b/ChangeLog2 index ea878e0..e8a75bd 100644 --- a/ChangeLog2 +++ b/ChangeLog2 @@ -1,3 +1,12 @@ +2007-07-18 Armin Burgmeier + + * src/modest-tny-account-store.c: + (get_server_accounts): Set parent modest account name for each + connection-specific transport account so that special folders of such + an account can be looked up. This fixes a crash when changing account + settings. This might also be related to projects.maemo.org bug + NB#63594. + 2007-07-16 Armin Burgmeier * src/modest-ui-actions.c: Added a button to create a folder to the diff --git a/src/modest-tny-account-store.c b/src/modest-tny-account-store.c index e4efc5f..3acc619 100644 --- a/src/modest-tny-account-store.c +++ b/src/modest-tny-account-store.c @@ -1035,6 +1035,7 @@ get_server_accounts (TnyAccountStore *self, TnyList *list, TnyAccountType type) tny_account = modest_tny_account_new_from_server_account_name ( priv->account_mgr, priv->session, transport_account_name); if (tny_account) { + modest_tny_account_set_parent_modest_account_name_for_server_account (tny_account, account_name); g_object_set_data (G_OBJECT(tny_account), "account_store", (gpointer)self); if (list) -- 1.7.9.5