From 700863d70308d66b7ce99d851254dff20a6ad80b Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 16 Oct 2001 21:35:13 +0000 Subject: Check that the cursor_uid is non-NULL before emitting a "message_selected" 2001-10-16 Jeffrey Stedfast * message-list.c (on_cursor_activated_idle): Check that the cursor_uid is non-NULL before emitting a "message_selected" signal. Fixes bug #6015. svn path=/trunk/; revision=13706 --- mail/ChangeLog | 6 ++++++ mail/message-list.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 3573ccacf7..f8315faacd 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2001-10-16 Jeffrey Stedfast + + * message-list.c (on_cursor_activated_idle): Check that the + cursor_uid is non-NULL before emitting a "message_selected" + signal. Fixes bug #6015. + 2001-10-16 Jon Trowbridge * e-searching-tokenizer.c (e_searching_tokenizer_begin): Always diff --git a/mail/message-list.c b/mail/message-list.c index 2cb0f081c2..679c584a24 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -1976,7 +1976,7 @@ on_cursor_activated_idle (gpointer data) ESelectionModel *esm = e_tree_get_selection_model (message_list->tree); gint selected = e_selection_model_selected_count (esm); - if (selected == 1) { + if (selected == 1 && message_list->cursor_uid) { printf ("emitting cursor changed signal, for uid %s\n", message_list->cursor_uid); gtk_signal_emit (GTK_OBJECT (message_list), message_list_signals[MESSAGE_SELECTED], message_list->cursor_uid); -- cgit v1.2.3