X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fhildon2%2Fmodest-platform.c;h=1125cde30bd85bfa6925e4e4f3f731ebfe4b59b7;hp=4e1883628e941f0a04622266d7a31f55da308de2;hb=e3277ea07a5543dcc250f8e60dadb6c51cc3bfb1;hpb=aaa5b855ab09fac253f684307b029de2462b8b44 diff --git a/src/hildon2/modest-platform.c b/src/hildon2/modest-platform.c index 4e18836..1125cde 100644 --- a/src/hildon2/modest-platform.c +++ b/src/hildon2/modest-platform.c @@ -139,26 +139,21 @@ on_modest_conf_update_interval_changed (ModestConf* self, static gboolean check_required_files (void) { - FILE *mcc_file = modest_utils_open_mcc_mapping_file (FALSE, NULL); + FILE *mcc_file = modest_utils_open_mcc_mapping_file (); + if (!mcc_file) { g_printerr ("modest: check for mcc file (for LANG) failed\n"); return FALSE; - } else - fclose (mcc_file); - - mcc_file = modest_utils_open_mcc_mapping_file (TRUE, NULL); - if (!mcc_file) { - g_printerr ("modest: check for mcc file (for LC_MESSAGES) failed\n"); - return FALSE; - } else + } else { fclose (mcc_file); - + } + if (access(MODEST_PROVIDER_DATA_FILE, R_OK) != 0 && access(MODEST_FALLBACK_PROVIDER_DATA_FILE, R_OK) != 0) { g_printerr ("modest: cannot find providers data\n"); return FALSE; } - + return TRUE; }