aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog2
-rw-r--r--mail/mail-session.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 61738bea97..e4bc6dbf3d 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -29,6 +29,8 @@
timeout, dont do anything.
(timeout_timeout): Properly honour the result, remove the timout
if it returns false.
+ (do_user_message): Setup the message_destroy_id when we setup the
+ destroy handler so it doesn't get called twice.
2001-10-23 Jeffrey Stedfast <fejj@ximian.com>
diff --git a/mail/mail-session.c b/mail/mail-session.c
index 662d80acb7..9f557b05ea 100644
--- a/mail/mail-session.c
+++ b/mail/mail-session.c
@@ -513,7 +513,7 @@ do_user_message (struct _mail_msg *mm)
/* We only need to wait for the result if we allow cancel otherwise show but send result back instantly */
if (m->allow_cancel) {
gtk_signal_connect((GtkObject*)message_dialogue, "clicked", user_message_clicked, m);
- gtk_signal_connect((GtkObject*)message_dialogue, "destroy", user_message_destroy, m);
+ message_destroy_id = gtk_signal_connect((GtkObject*)message_dialogue, "destroy", user_message_destroy, m);
if (m->ismain)
gnome_dialog_run_and_close ((GnomeDialog *)message_dialogue);
else