aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-10-17 05:35:13 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-10-17 05:35:13 +0800
commit700863d70308d66b7ce99d851254dff20a6ad80b (patch)
tree56e6071992ef51e9205dba8668f8d4f3932041aa
parent66da172519ba60805e7b07f194ce6a147fcdb905 (diff)
downloadgsoc2013-evolution-700863d70308d66b7ce99d851254dff20a6ad80b.tar.gz
gsoc2013-evolution-700863d70308d66b7ce99d851254dff20a6ad80b.tar.zst
gsoc2013-evolution-700863d70308d66b7ce99d851254dff20a6ad80b.zip
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
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/message-list.c2
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);