[PATCH 15/18] In TnyCamelFolder don't emit folder store change on observer attachment if there's no folders.



In TnyCamelFolder don't emit folder store change on observer attachment if there's no folders.

---
 libtinymail-camel/tny-camel-folder.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

--
Rob Taylor, Codethink Ltd. - http://codethink.co.uk
diff --git a/libtinymail-camel/tny-camel-folder.c b/libtinymail-camel/tny-camel-folder.c
index a0c8a05..432b8ad 100644
--- a/libtinymail-camel/tny-camel-folder.c
+++ b/libtinymail-camel/tny-camel-folder.c
@@ -6211,7 +6211,8 @@ tny_camel_folder_store_add_observer_default (TnyFolderStore *self, TnyFolderStor
 	g_static_rec_mutex_unlock (priv->obs_lock);
 
 	g_hash_table_foreach (priv->known_folders, build_appeared_change, change);
-	notify_folder_store_observers_about_in_idle (self, change, TNY_FOLDER_PRIV_GET_SESSION (priv));
+	if (tny_folder_store_change_get_changed (change) != 0) 
+		notify_folder_store_observers_about_in_idle (self, change, TNY_FOLDER_PRIV_GET_SESSION (priv));
 	g_object_unref (change);
 
 	return;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]