aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-subscribe-editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-subscribe-editor.c')
-rw-r--r--mail/em-subscribe-editor.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/mail/em-subscribe-editor.c b/mail/em-subscribe-editor.c
index 39ec661013..c0d1120a3e 100644
--- a/mail/em-subscribe-editor.c
+++ b/mail/em-subscribe-editor.c
@@ -268,11 +268,11 @@ sub_folder_exec (struct _zsubscribe_msg *m)
if (m->subscribe)
camel_store_subscribe_folder (
m->sub->store, m->node->info->full_name,
- &m->base.error);
+ m->base.cancellable, &m->base.error);
else
camel_store_unsubscribe_folder (
m->sub->store, m->node->info->full_name,
- &m->base.error);
+ m->base.cancellable, &m->base.error);
}
static void
@@ -453,15 +453,13 @@ static void
sub_folderinfo_exec (struct _emse_folderinfo_msg *m)
{
if (m->seq == m->sub->seq) {
- camel_operation_register (m->base.cancel);
/* get the full folder tree for search ability */
m->info = camel_store_get_folder_info (
m->sub->store, NULL,
CAMEL_STORE_FOLDER_INFO_NO_VIRTUAL |
CAMEL_STORE_FOLDER_INFO_SUBSCRIPTION_LIST |
CAMEL_STORE_FOLDER_INFO_RECURSIVE,
- &m->base.error);
- camel_operation_unregister ();
+ m->base.cancellable, &m->base.error);
}
}