diff options
author | Milan Crha <mcrha@redhat.com> | 2011-01-19 19:10:56 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2011-01-19 19:10:56 +0800 |
commit | f3233b37b434ac1c51a9e25953d513e69f46e432 (patch) | |
tree | c4d4e8d7ce83a40d6391ae6de76801938e0633e7 /mail | |
parent | 2878a355805ec60f521ea8816a738a0ae0a75893 (diff) | |
download | gsoc2013-evolution-f3233b37b434ac1c51a9e25953d513e69f46e432.tar.gz gsoc2013-evolution-f3233b37b434ac1c51a9e25953d513e69f46e432.tar.zst gsoc2013-evolution-f3233b37b434ac1c51a9e25953d513e69f46e432.zip |
Bug #633982 - Crash when trying to Create a search folder from a search
Diffstat (limited to 'mail')
-rw-r--r-- | mail/mail-vfolder.c | 4 | ||||
-rw-r--r-- | mail/mail-vfolder.h | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/mail/mail-vfolder.c b/mail/mail-vfolder.c index 89716ffaf8..7f22198973 100644 --- a/mail/mail-vfolder.c +++ b/mail/mail-vfolder.c @@ -1347,13 +1347,11 @@ vfolder_create_part (const gchar *name) /* clones a filter/search rule into a matching vfolder rule (assuming the same system definitions) */ EFilterRule * -vfolder_clone_rule (EFilterRule *in) +vfolder_clone_rule (EMailSession *session, EFilterRule *in) { - EMailSession *session; EFilterRule *rule; xmlNodePtr xml; - session = em_vfolder_rule_get_session (EM_VFOLDER_RULE (in)); rule = em_vfolder_rule_new (session); xml = e_filter_rule_xml_encode (in); diff --git a/mail/mail-vfolder.h b/mail/mail-vfolder.h index 19c4d524b4..91aae4d295 100644 --- a/mail/mail-vfolder.h +++ b/mail/mail-vfolder.h @@ -36,7 +36,8 @@ void vfolder_edit (EShellView *shell_view); void vfolder_edit_rule (EMailBackend *backend, const gchar *name); EFilterPart * vfolder_create_part (const gchar *name); -EFilterRule * vfolder_clone_rule (EFilterRule *in); +EFilterRule * vfolder_clone_rule (EMailSession *session, + EFilterRule *in); void vfolder_gui_add_rule (EMVFolderRule *rule); void vfolder_gui_add_from_message (EMailSession *session, CamelMimeMessage *msg, |