From e8585ef73c021ec3719729735805a76b552d34b7 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Mon, 8 Aug 2005 09:02:25 +0000 Subject: ** See bug #300881. 2005-08-04 Not Zed ** See bug #300881. * em-account-editor.c (emae_setup_signatures): don't add the signature listener if we've already added it. svn path=/trunk/; revision=30034 --- mail/ChangeLog | 7 +++++++ mail/em-account-editor.c | 8 +++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 9d7eddbd8b..419b578155 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2005-08-04 Not Zed + + ** See bug #300881. + + * em-account-editor.c (emae_setup_signatures): don't add the + signature listener if we've already added it. + 2005-08-08 Vivek Jain * em-format.c: (emf_multipart_appledouble): diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c index 70936abf97..d35255d819 100644 --- a/mail/em-account-editor.c +++ b/mail/em-account-editor.c @@ -684,9 +684,11 @@ emae_setup_signatures(EMAccountEditor *emae, GladeXML *xml) signatures = mail_config_get_signatures (); - p->sig_added_id = g_signal_connect(signatures, "signature-added", G_CALLBACK(emae_signature_added), emae); - p->sig_removed_id = g_signal_connect(signatures, "signature-removed", G_CALLBACK(emae_signature_removed), emae); - p->sig_changed_id = g_signal_connect(signatures, "signature-changed", G_CALLBACK(emae_signature_changed), emae); + if (p->sig_added_id == 0) { + p->sig_added_id = g_signal_connect(signatures, "signature-added", G_CALLBACK(emae_signature_added), emae); + p->sig_removed_id = g_signal_connect(signatures, "signature-removed", G_CALLBACK(emae_signature_removed), emae); + p->sig_changed_id = g_signal_connect(signatures, "signature-changed", G_CALLBACK(emae_signature_changed), emae); + } /* we need to count the 'none' entry before using the index */ i = 1; -- cgit v1.2.3