From 3eed228723a8c745e6ae28df8a80191c24dd483a Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 4 Oct 2001 21:29:55 +0000 Subject: Ignore the signal if the radio button is not "on". This fixes bug #10532 2001-10-04 Jeffrey Stedfast * mail-accounts.c (images_radio_toggled): Ignore the signal if the radio button is not "on". This fixes bug #10532 because the on/off signals don't always come in the off->on order. * mail-ops.c (mail_send_message): Reduced some redundancy. svn path=/trunk/; revision=13424 --- mail/mail-accounts.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mail/mail-accounts.c') diff --git a/mail/mail-accounts.c b/mail/mail-accounts.c index 0bc9191743..bd125de1fa 100644 --- a/mail/mail-accounts.c +++ b/mail/mail-accounts.c @@ -656,7 +656,10 @@ static void images_radio_toggled (GtkWidget *radio, gpointer data) { MailAccountsDialog *dialog = data; - + + if (!gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (radio))) + return; + if (radio == (GtkWidget *)dialog->images_always) mail_config_set_http_mode (MAIL_CONFIG_HTTP_ALWAYS); else if (radio == (GtkWidget *)dialog->images_sometimes) -- cgit v1.2.3