aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/e-mail-session.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/e-mail-session.c b/mail/e-mail-session.c
index 9ac0cad048..b1dea643f8 100644
--- a/mail/e-mail-session.c
+++ b/mail/e-mail-session.c
@@ -268,9 +268,14 @@ user_message_exec (struct _user_message_msg *m,
user_message_response (
user_message_dialog, response, m);
} else {
+ gpointer user_data = m;
+
+ if (g_slist_length (m->button_captions) <= 1)
+ user_data = NULL;
+
g_signal_connect (
user_message_dialog, "response",
- G_CALLBACK (user_message_response), NULL);
+ G_CALLBACK (user_message_response), user_data);
gtk_widget_show (user_message_dialog);
}
}