[evolution-mapi] Update store<=>folder summaries connection on folder rename
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi] Update store<=>folder summaries connection on folder rename
- Date: Wed, 7 Mar 2012 19:21:20 +0000 (UTC)
commit 4e03f13b11ea63d3937a514c653e6a0014c708ed
Author: Milan Crha <mcrha redhat com>
Date: Wed Mar 7 20:21:01 2012 +0100
Update store<=>folder summaries connection on folder rename
src/camel/camel-mapi-folder.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/camel/camel-mapi-folder.c b/src/camel/camel-mapi-folder.c
index 512aae8..1e13e2b 100644
--- a/src/camel/camel-mapi-folder.c
+++ b/src/camel/camel-mapi-folder.c
@@ -1023,7 +1023,19 @@ mapi_get_message_info(CamelFolder *folder, const gchar *uid)
static void
mapi_folder_rename (CamelFolder *folder, const gchar *new)
{
+ CamelStore *parent_store;
+
+ parent_store = camel_folder_get_parent_store (folder);
+
+ camel_store_summary_disconnect_folder_summary (
+ ((CamelMapiStore *) parent_store)->summary,
+ folder->summary);
+
((CamelFolderClass *)camel_mapi_folder_parent_class)->rename(folder, new);
+
+ camel_store_summary_connect_folder_summary (
+ ((CamelMapiStore *) parent_store)->summary,
+ camel_folder_get_full_name (folder), folder->summary);
}
static gint
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]