[evolution-patches] Fix for Bug #51082



This patch fixes bug #51082 by switching direction if
message_list_select () returns FALSE. It makes the
message browser and folder view essentially behave in
the same manner for deleting messages.

-- dobey

Index: em-folder-view.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/em-folder-view.c,v
retrieving revision 1.18
diff -u -r1.18 em-folder-view.c
--- em-folder-view.c	4 Dec 2003 17:10:51 -0000	1.18
+++ em-folder-view.c	4 Dec 2003 23:10:37 -0000
@@ -545,7 +545,8 @@
 	em_folder_view_mark_selected (emfv, CAMEL_MESSAGE_SEEN|CAMEL_MESSAGE_DELETED, CAMEL_MESSAGE_SEEN|CAMEL_MESSAGE_DELETED);
 	
 	if (uids->len == 1)
-		message_list_select (emfv->list, MESSAGE_LIST_SELECT_NEXT, 0, 0, FALSE);
+		if (!message_list_select (emfv->list, MESSAGE_LIST_SELECT_NEXT, 0, 0, FALSE))
+			message_list_select (emfv->list, MESSAGE_LIST_SELECT_PREVIOUS, 0, 0, FALSE);
 	
 	em_utils_uids_free (uids);
 }

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]