diff options
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/message-list.c | 2 |
2 files changed, 7 insertions, 1 deletions
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 <fejj@ximian.com> + + * 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 <trow@ximian.com> * 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); |