diff options
author | Radek Doulik <rodo@ximian.com> | 2004-11-12 02:37:07 +0800 |
---|---|---|
committer | Radek Doulik <rodo@src.gnome.org> | 2004-11-12 02:37:07 +0800 |
commit | 83ef2d98db99efbdd5108606638ca4b29f97853b (patch) | |
tree | 70b5746b9423ba48c9df30b5fda0215f67250b16 /mail/em-format.c | |
parent | 38c307f2f8bafd0a17c68fcc83cacdcd82e7e9b0 (diff) | |
download | gsoc2013-evolution-83ef2d98db99efbdd5108606638ca4b29f97853b.tar.gz gsoc2013-evolution-83ef2d98db99efbdd5108606638ca4b29f97853b.tar.zst gsoc2013-evolution-83ef2d98db99efbdd5108606638ca4b29f97853b.zip |
l = g_list_next (l); in inner loop instead of g = g_list_next (l)..
2004-11-11 Radek Doulik <rodo@ximian.com>
* em-format-hook.c (emfh_enable): l = g_list_next (l); in inner
loop instead of g = g_list_next (l).. probably typo after c'n'p
* em-format.c (em_format_class_remove_handler): in case the old
handler doesn't exist, remove 'info' handler from type_handler
table
svn path=/trunk/; revision=27893
Diffstat (limited to 'mail/em-format.c')
-rw-r--r-- | mail/em-format.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/em-format.c b/mail/em-format.c index 73bba36e57..21b87d102c 100644 --- a/mail/em-format.c +++ b/mail/em-format.c @@ -239,7 +239,10 @@ em_format_class_remove_handler(EMFormatClass *emfc, EMFormatHandler *info) current = g_hash_table_lookup(emfc->type_handlers, info->mime_type); if (current == info) { current = info->old; - g_hash_table_insert(emfc->type_handlers, current->mime_type, current); + if (current) + g_hash_table_insert(emfc->type_handlers, current->mime_type, current); + else + g_hash_table_remove(emfc->type_handlers, info->mime_type); } else { while (current && current->old != info) current = current->old; |