2007-06-20 Murray Cumming <murrayc@murrayc-desktop>
authorMurray Cumming <murrayc@murrayc.com>
Wed, 20 Jun 2007 14:25:17 +0000 (14:25 +0000)
committerMurray Cumming <murrayc@murrayc.com>
Wed, 20 Jun 2007 14:25:17 +0000 (14:25 +0000)
* 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
src/modest-search.c

index 5596139..bb31ab9 100644 (file)
@@ -1,3 +1,9 @@
+2007-06-20  Murray Cumming  <murrayc@murrayc-desktop>
+
+       * 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  <murrayc@murrayc.com>
 
        * src/dbus_api/modest-dbus-callbacks.c: (modest_dbus_req_filter):
index fa1600a..31aa485 100644 (file)
@@ -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);