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 /modules | |
parent | 2878a355805ec60f521ea8816a738a0ae0a75893 (diff) | |
download | gsoc2013-evolution-f3233b37b434ac1c51a9e25953d513e69f46e432.tar gsoc2013-evolution-f3233b37b434ac1c51a9e25953d513e69f46e432.tar.gz gsoc2013-evolution-f3233b37b434ac1c51a9e25953d513e69f46e432.tar.bz2 gsoc2013-evolution-f3233b37b434ac1c51a9e25953d513e69f46e432.tar.lz gsoc2013-evolution-f3233b37b434ac1c51a9e25953d513e69f46e432.tar.xz 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 'modules')
-rw-r--r-- | modules/mail/e-mail-shell-view-actions.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c index 0852180d51..04f8dcb480 100644 --- a/modules/mail/e-mail-shell-view-actions.c +++ b/modules/mail/e-mail-shell-view-actions.c @@ -157,7 +157,9 @@ action_mail_create_search_folder_cb (GtkAction *action, reader = E_MAIL_READER (mail_view); folder_uri = e_mail_reader_get_folder_uri (reader); - search_rule = vfolder_clone_rule (search_rule); + search_rule = vfolder_clone_rule (session, search_rule); + g_return_if_fail (search_rule != NULL); + rule_name = g_strdup_printf ("%s %s", search_rule->name, search_text); e_filter_rule_set_source (search_rule, E_FILTER_SOURCE_INCOMING); e_filter_rule_set_name (search_rule, rule_name); |