[evolution-groupwise] Update store<=>folder summaries connection on folder rename
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-groupwise] Update store<=>folder summaries connection on folder rename
- Date: Wed, 7 Mar 2012 19:20:31 +0000 (UTC)
commit 86aed15ecbd89b8d246ce46de5ab5c2cb2db59ad
Author: Milan Crha <mcrha redhat com>
Date: Wed Mar 7 20:20:16 2012 +0100
Update store<=>folder summaries connection on folder rename
src/camel/camel-groupwise-folder.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/camel/camel-groupwise-folder.c b/src/camel/camel-groupwise-folder.c
index a92f992..0d93198 100644
--- a/src/camel/camel-groupwise-folder.c
+++ b/src/camel/camel-groupwise-folder.c
@@ -386,6 +386,10 @@ groupwise_folder_rename (CamelFolder *folder,
camel_data_cache_set_path (gw_folder->cache, folder_dir);
CAMEL_GROUPWISE_FOLDER_REC_UNLOCK (folder, cache_lock);
+ camel_store_summary_disconnect_folder_summary (
+ (CamelStoreSummary *) ((CamelGroupwiseStore *) parent_store)->summary,
+ folder->summary);
+
((CamelFolderClass *) camel_groupwise_folder_parent_class)->rename (folder, new);
state_file = g_strdup_printf ("%s/cmeta", folder_dir);
@@ -393,6 +397,10 @@ groupwise_folder_rename (CamelFolder *folder,
g_free (state_file);
g_free (folder_dir);
+
+ camel_store_summary_connect_folder_summary (
+ (CamelStoreSummary *) ((CamelGroupwiseStore *) parent_store)->summary,
+ camel_folder_get_full_name (folder), folder->summary);
}
static GPtrArray *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]