diff options
-rw-r--r-- | e-util/e-signature-list.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/e-util/e-signature-list.c b/e-util/e-signature-list.c index 3fd4f8ab15..34b45be5ba 100644 --- a/e-util/e-signature-list.c +++ b/e-util/e-signature-list.c @@ -204,13 +204,16 @@ gconf_signatures_changed (GConfClient *client, guint cnxn_id, GConfEntry *entry, } if (!found) { + resave = TRUE; + /* Must be a new signature */ signature = e_signature_new_from_xml (l->data); - have_autogen |= e_signature_get_autogenerated (signature); - resave = TRUE; + if (signature) { + have_autogen |= e_signature_get_autogenerated (signature); - e_list_append (E_LIST (signature_list), signature); - new_sigs = g_slist_prepend (new_sigs, signature); + e_list_append (E_LIST (signature_list), signature); + new_sigs = g_slist_prepend (new_sigs, signature); + } } g_free (uid); |