diff options
author | Milan Crha <mcrha@redhat.com> | 2012-05-31 17:50:44 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-05-31 17:50:44 +0800 |
commit | 93178424f2a5504adcec14f89d868f00bca60f38 (patch) | |
tree | 6ed68831bc63f961dc3a540b237bbfe67807d117 /libemail-engine | |
parent | 71924fc48776c642fe8520febc384250cf55973c (diff) | |
download | gsoc2013-evolution-93178424f2a5504adcec14f89d868f00bca60f38.tar gsoc2013-evolution-93178424f2a5504adcec14f89d868f00bca60f38.tar.gz gsoc2013-evolution-93178424f2a5504adcec14f89d868f00bca60f38.tar.bz2 gsoc2013-evolution-93178424f2a5504adcec14f89d868f00bca60f38.tar.lz gsoc2013-evolution-93178424f2a5504adcec14f89d868f00bca60f38.tar.xz gsoc2013-evolution-93178424f2a5504adcec14f89d868f00bca60f38.tar.zst gsoc2013-evolution-93178424f2a5504adcec14f89d868f00bca60f38.zip |
Bug #673946 - Cannot delete search folders
Diffstat (limited to 'libemail-engine')
-rw-r--r-- | libemail-engine/mail-vfolder.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libemail-engine/mail-vfolder.c b/libemail-engine/mail-vfolder.c index dd083fafb8..be60534719 100644 --- a/libemail-engine/mail-vfolder.c +++ b/libemail-engine/mail-vfolder.c @@ -895,17 +895,18 @@ store_folder_deleted_cb (CamelStore *store, rule = e_rule_context_find_rule ((ERuleContext *) context, info->full_name, NULL); if (rule) { const gchar *config_dir; + EMailSession *session = E_MAIL_SESSION (camel_service_get_session (CAMEL_SERVICE (store))); /* We need to stop listening to removed events, * otherwise we'll try and remove it again. */ g_signal_handlers_disconnect_matched ( - context, G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, - 0, 0, NULL, context_rule_removed, context); + context, G_SIGNAL_MATCH_FUNC, + 0, 0, NULL, context_rule_removed, NULL); e_rule_context_remove_rule ((ERuleContext *) context, rule); g_object_unref (rule); g_signal_connect ( context, "rule_removed", - G_CALLBACK (context_rule_removed), context); + G_CALLBACK (context_rule_removed), session); config_dir = mail_session_get_config_dir (); user = g_build_filename (config_dir, "vfolders.xml", NULL); |