Hi guys, This patch fix a critical on mdest-gnome startup. Just add an #ifdef to avoid an unnecessary volume path mounted check.
Kind Regards, Iván Gómez.
>From 2ca18ea2b15de6d022622325717ea5d4b490f5ef Mon Sep 17 00:00:00 2001 From: Ivan Gomez <igo...@igalia.com> Date: Thu, 14 May 2009 17:19:11 +0200 Subject: [PATCH] Fixed critical on gnome startup * src/modest-tny-account-store.c : Added #ifdef to avoid volume_path_is_mounted check unecessary in gnome. --- src/modest-tny-account-store.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/modest-tny-account-store.c b/src/modest-tny-account-store.c index d887e9e..3cd9ba3 100644 --- a/src/modest-tny-account-store.c +++ b/src/modest-tny-account-store.c @@ -955,13 +955,15 @@ modest_tny_account_store_new (ModestAccountMgr *account_mgr, accounts available */ if (!only_local_accounts (MODEST_TNY_ACCOUNT_STORE(obj))) add_connection_specific_transport_accounts (MODEST_TNY_ACCOUNT_STORE(obj)); - + /* This is a singleton, so it does not need to be unrefed. */ +#ifdef MODEST_PLATFORM_MAEMO if (volume_path_is_mounted (g_getenv (MODEST_MMC1_VOLUMEPATH_ENV))) { /* It is mounted: */ - add_mmc_account (MODEST_TNY_ACCOUNT_STORE (obj), FALSE /* don't emit the insert signal. */); + add_mmc_account (MODEST_TNY_ACCOUNT_STORE (obj), FALSE /* don't emit the insert signal. */); } - +#endif + return MODEST_TNY_ACCOUNT_STORE(obj); } -- 1.5.6.3
_______________________________________________ Modest-devel mailing list Modest-devel@garage.maemo.org https://garage.maemo.org/mailman/listinfo/modest-devel