diff options
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/message-list.c | 10 |
2 files changed, 10 insertions, 6 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 2221c7c9b0..357c9e53ff 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2001-08-15 Peter Williams <peterw@ximian.com> + + * message-list.c (on_cursor_activated_idle): Always remove the + idle and return FALSE, instead of returning TRUE if more than one + message is selected. + 2001-08-15 Jason Leach <jleach@ximian.com> * mail-tools.c (mail_tool_quote_message): Stop building the quote diff --git a/mail/message-list.c b/mail/message-list.c index a198fe283b..7711130e48 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -1978,16 +1978,14 @@ 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) { - return TRUE; - } else { + if (selected == 1) { 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); - - message_list->idle_id = 0; - return FALSE; } + + message_list->idle_id = 0; + return FALSE; } static void |