Blame SOURCES/evolution-3.22.6-indefinite-message-download.patch

a00a81
diff -up evolution-3.22.6/e-util/e-table-selection-model.c.indefinite-message-download evolution-3.22.6/e-util/e-table-selection-model.c
a00a81
--- evolution-3.22.6/e-util/e-table-selection-model.c.indefinite-message-download	2014-03-24 10:25:23.000000000 +0100
a00a81
+++ evolution-3.22.6/e-util/e-table-selection-model.c	2017-10-19 17:51:10.488332515 +0200
a00a81
@@ -127,8 +127,8 @@ model_changed_idle (ETableSelectionModel
a00a81
 			g_free (save_id);
a00a81
 		}
a00a81
 		free_hash (etsm);
a00a81
-		e_selection_model_cursor_changed (E_SELECTION_MODEL (etsm), cursor_row, cursor_col);
a00a81
 		e_selection_model_selection_changed (E_SELECTION_MODEL (etsm));
a00a81
+		e_selection_model_cursor_changed (E_SELECTION_MODEL (etsm), cursor_row, cursor_col);
a00a81
 	}
a00a81
 	etsm->model_changed_idle_id = 0;
a00a81
 	return FALSE;
a00a81
diff -up evolution-3.22.6/mail/message-list.c.indefinite-message-download evolution-3.22.6/mail/message-list.c
a00a81
--- evolution-3.22.6/mail/message-list.c.indefinite-message-download	2017-01-13 16:06:56.000000000 +0100
a00a81
+++ evolution-3.22.6/mail/message-list.c	2017-10-19 17:51:14.995332453 +0200
a00a81
@@ -5056,7 +5056,7 @@ on_selection_changed_cmd (ETree *tree,
a00a81
 	 * is also used for other updating.  If it is empty, it might just be a setup event
a00a81
 	 * from etree which we do need to ignore */
a00a81
 	if ((newuid == NULL && message_list->cursor_uid == NULL && selected_count == 0) ||
a00a81
-	    (message_list->last_sel_single && selected_count == 1 && newuid != NULL && message_list->cursor_uid != NULL && !strcmp (message_list->cursor_uid, newuid))) {
a00a81
+	    (message_list->last_sel_single && selected_count == 1 && message_list->cursor_uid != NULL && (newuid == NULL || !strcmp (message_list->cursor_uid, newuid)))) {
a00a81
 		/* noop */
a00a81
 	} else {
a00a81
 		g_free (message_list->cursor_uid);