Check that the cursor_uid is non-NULL before emitting a "message_selected"
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. svn path=/trunk/; revision=13706
This commit is contained in:

committed by
Jeffrey Stedfast

parent
66da172519
commit
700863d703
@ -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>
|
2001-10-16 Jon Trowbridge <trow@ximian.com>
|
||||||
|
|
||||||
* e-searching-tokenizer.c (e_searching_tokenizer_begin): Always
|
* e-searching-tokenizer.c (e_searching_tokenizer_begin): Always
|
||||||
|
@ -1976,7 +1976,7 @@ on_cursor_activated_idle (gpointer data)
|
|||||||
ESelectionModel *esm = e_tree_get_selection_model (message_list->tree);
|
ESelectionModel *esm = e_tree_get_selection_model (message_list->tree);
|
||||||
gint selected = e_selection_model_selected_count (esm);
|
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);
|
printf ("emitting cursor changed signal, for uid %s\n", message_list->cursor_uid);
|
||||||
gtk_signal_emit (GTK_OBJECT (message_list),
|
gtk_signal_emit (GTK_OBJECT (message_list),
|
||||||
message_list_signals[MESSAGE_SELECTED], message_list->cursor_uid);
|
message_list_signals[MESSAGE_SELECTED], message_list->cursor_uid);
|
||||||
|
Reference in New Issue
Block a user