diff options
-rw-r--r-- | smime/ChangeLog | 7 | ||||
-rw-r--r-- | smime/gui/certificate-manager.c | 12 |
2 files changed, 13 insertions, 6 deletions
diff --git a/smime/ChangeLog b/smime/ChangeLog index 412d293dd3..cfe556db97 100644 --- a/smime/ChangeLog +++ b/smime/ChangeLog @@ -1,3 +1,10 @@ +2004-11-23 Not Zed <NotZed@Ximian.com> + + * gui/certificate-manager.c (delete_ca): don't remove the tree + node if deleting the cert failed. + (delete_your): same. + (delete_contact): same. Hoorah for code-reuse. + 2004-10-13 JP Rosevear <jpr@novell.com> * gui/e-cert-selector.c: update to use G_DEFINE_TYPE diff --git a/smime/gui/certificate-manager.c b/smime/gui/certificate-manager.c index 16bb261bfc..2e1f92a030 100644 --- a/smime/gui/certificate-manager.c +++ b/smime/gui/certificate-manager.c @@ -177,10 +177,10 @@ delete_your (GtkWidget *widget, CertificateManagerData *cfm) 4, &cert, -1); - if (cert) { + if (cert + && e_cert_db_delete_cert (e_cert_db_peek (), cert)) { GtkTreeIter child_iter; printf ("DELETE\n"); - e_cert_db_delete_cert (e_cert_db_peek (), cert); gtk_tree_model_sort_convert_iter_to_child_iter (GTK_TREE_MODEL_SORT (cfm->yourcerts_streemodel), &child_iter, &iter); @@ -421,10 +421,10 @@ delete_contact (GtkWidget *widget, CertificateManagerData *cfm) 3, &cert, -1); - if (cert) { + if (cert + && e_cert_db_delete_cert (e_cert_db_peek (), cert)) { GtkTreeIter child_iter; printf ("DELETE\n"); - e_cert_db_delete_cert (e_cert_db_peek (), cert); gtk_tree_model_sort_convert_iter_to_child_iter (GTK_TREE_MODEL_SORT (cfm->contactcerts_streemodel), &child_iter, &iter); @@ -640,10 +640,10 @@ delete_ca (GtkWidget *widget, CertificateManagerData *cfm) 1, &cert, -1); - if (cert) { + if (cert + && e_cert_db_delete_cert (e_cert_db_peek (), cert)) { GtkTreeIter child_iter; printf ("DELETE\n"); - e_cert_db_delete_cert (e_cert_db_peek (), cert); gtk_tree_model_sort_convert_iter_to_child_iter (GTK_TREE_MODEL_SORT (cfm->authoritycerts_streemodel), &child_iter, &iter); |