From 65682ca70e6d3983f705ec94d7acc87418806f0c Mon Sep 17 00:00:00 2001 From: Murray Cumming Date: Wed, 20 Jun 2007 14:25:17 +0000 Subject: [PATCH] 2007-06-20 Murray Cumming * src/modest-search.c: (modest_search_folder): Check for a GError when calling tny_folder_get_headers(), to show that this is not the cause of later failure. pmo-trunk-r2338 --- ChangeLog2 | 6 ++++++ src/modest-search.c | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog2 b/ChangeLog2 index 5596139..bb31ab9 100644 --- a/ChangeLog2 +++ b/ChangeLog2 @@ -1,3 +1,9 @@ +2007-06-20 Murray Cumming + + * src/modest-search.c: (modest_search_folder): Check for a GError + when calling tny_folder_get_headers(), to show that this is not the cause + of later failure. + 2007-06-20 Murray Cumming * src/dbus_api/modest-dbus-callbacks.c: (modest_dbus_req_filter): diff --git a/src/modest-search.c b/src/modest-search.c index fa1600a..31aa485 100644 --- a/src/modest-search.c +++ b/src/modest-search.c @@ -343,7 +343,14 @@ modest_search_folder (TnyFolder *folder, ModestSearch *search) #endif list = tny_simple_list_new (); - tny_folder_get_headers (folder, list, FALSE, NULL); + GError *error = NULL; + tny_folder_get_headers (folder, list, FALSE /* don't refresh */, &error); + if (error) { + g_warning ("%s: tny_folder_get_headers() failed with error=%s.\n", + __FUNCTION__, error->message); + g_error_free (error); + error = NULL; + } iter = tny_list_create_iterator (list); -- 1.7.9.5