From 0df3715eb4f16d25f74ce6545da9ecdbc0d2ef2b Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Fri, 26 Jul 2002 17:18:59 +0000 Subject: (load_all_folders): Don't return FALSE if any of the folders fails to load; otherwise, if the user has played with ~/evolution, he might end up not seeing any folders at all. svn path=/trunk/; revision=17606 --- shell/e-local-storage.c | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) (limited to 'shell/e-local-storage.c') diff --git a/shell/e-local-storage.c b/shell/e-local-storage.c index 8c263d1e76..3b7caca0e4 100644 --- a/shell/e-local-storage.c +++ b/shell/e-local-storage.c @@ -218,8 +218,9 @@ load_all_folders (ELocalStorage *local_storage) base_path = e_local_storage_get_base_path (local_storage); - if (! e_path_find_folders (base_path, load_folder, local_storage)) - return FALSE; + /* Ignore errors, so we set up the local storage even if there is stale + data that we don't understand in ~/evolution. */ + e_path_find_folders (base_path, load_folder, local_storage); setup_stock_folders (local_storage); @@ -817,6 +818,28 @@ struct _XferData { }; typedef struct _XferData XferData; +static int nesting = 0; + +#define PRINT_ENTER() \ + while (0) { \ + int _i; \ + nesting ++; \ + \ + for (_i = 0; _i < nesting; _i ++) \ + putchar (' '); \ + printf ("Enter %s", __FUNCTION__); \ + } + +#define PRINT_EXIT() \ + while (0) { \ + int _i; \ + \ + for (_i = 0; _i < nesting; _i ++) \ + putchar (' '); \ + printf ("Exit %s", __FUNCTION__); \ + nesting --; \ + } + static void async_xfer_folder_step (ELocalStorage *local_storage, const char *source_path, @@ -831,6 +854,7 @@ async_xfer_folder_step (ELocalStorage *local_storage, char *physical_path; char *physical_uri; + PRINT_ENTER (); priv = local_storage->priv; source_folder = e_storage_get_folder (E_STORAGE (local_storage), source_path); @@ -855,8 +879,8 @@ async_xfer_folder_step (ELocalStorage *local_storage, remove_source, component_client_callback, component_client_callback_data); - g_free (physical_uri); + PRINT_EXIT (); } static void -- cgit v1.2.3