Sync the db before we do a search. So that we are always on sync with
authorSrinivasa Ragavan <sragavan@novell.com>
Thu, 24 Jul 2008 20:08:11 +0000 (20:08 +0000)
committerSrinivasa Ragavan <sragavan@src.gnome.org>
Thu, 24 Jul 2008 20:08:11 +0000 (20:08 +0000)
2008-07-25  Srinivasa Ragavan  <sragavan@novell.com>

* camel/camel-folder-search.c: Sync the db before we do a search. So
that we are always on sync with view.

svn path=/trunk/; revision=9182

camel/ChangeLog
camel/camel-folder-search.c

index 1fb3888..db127ce 100644 (file)
@@ -1,5 +1,10 @@
 2008-07-25  Srinivasa Ragavan  <sragavan@novell.com>
 
+       * camel/camel-folder-search.c: Sync the db before we do a search. So
+       that we are always on sync with view.
+
+2008-07-25  Srinivasa Ragavan  <sragavan@novell.com>
+
        ** Fix for bug #544491
 
        * camel/camel-db.c: Lock while 2 thread try to access same folder's
index 6718167..91555b3 100644 (file)
@@ -464,6 +464,9 @@ camel_folder_search_search(CamelFolderSearch *search, const char *expr, GPtrArra
        struct _CamelFolderSearchPrivate *p = _PRIVATE(search);
 
        g_assert(search->folder);
+       
+       /* Sync the db, so that we search the db for changes */
+       camel_folder_summary_save_to_db (search->folder->summary, ex);
 
        p->ex = ex;