[Commits] folder.c 1.213.2.214 1.213.2.215

colin at claws-mail.org colin at claws-mail.org
Wed Sep 26 10:35:41 CEST 2012


Update of /home/claws-mail/claws/src
In directory srv:/tmp/cvs-serv26064/src

Modified Files:
      Tag: gtk2
	folder.c 
Log Message:
2012-09-26 [colin]	3.8.1cvs75

	* src/folder.c
		Fix body search triggering GUI updates
		for every message when it gets MSG_SCANNED
		set.

Index: folder.c
===================================================================
RCS file: /home/claws-mail/claws/src/folder.c,v
retrieving revision 1.213.2.214
retrieving revision 1.213.2.215
diff -u -d -r1.213.2.214 -r1.213.2.215
--- folder.c	26 Sep 2012 07:39:31 -0000	1.213.2.214
+++ folder.c	26 Sep 2012 08:35:39 -0000	1.213.2.215
@@ -4740,13 +4740,21 @@
 				 SearchProgressNotify	progress_cb,
 				 gpointer		progress_data)
 {
+	gint result;
+	
+	folder_item_update_freeze();
+
 	if (folder->klass->search_msgs) {
-		return folder->klass->search_msgs(folder, container,
+		result = folder->klass->search_msgs(folder, container,
 				msgs, on_server, predicate, progress_cb, progress_data);
 	} else {
-		return folder_item_search_msgs_local(folder, container,
+		result = folder_item_search_msgs_local(folder, container,
 				msgs, on_server, predicate, progress_cb, progress_data);
 	}
+	
+	folder_item_update_thaw();
+
+	return result;
 }
 
 MsgNumberList *folder_item_get_number_list(FolderItem *item)



More information about the Commits mailing list