[Commits] [SCM] claws branch, master, updated. 3.17.0-59-ga2394c0

ticho at claws-mail.org ticho at claws-mail.org
Sun Sep 23 16:47:00 CEST 2018


The branch, master has been updated
       via  a2394c03d010ef98197837d509d3d4c7265234bd (commit)
      from  9278a0825e350d0bb2502c6f8760be3f47565993 (commit)

Summary of changes:
 src/summaryview.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit a2394c03d010ef98197837d509d3d4c7265234bd
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Sun Sep 23 16:44:45 2018 +0200

    Add a NULL check in summary_select_by_msg_list when selecting tree nodes.
    
    This fixes an assertion failure when executing an action
    which moves selected messages to a different folder. We
    obviously cannot select previously selected messages if
    they're not in current folder anymore.

diff --git a/src/summaryview.c b/src/summaryview.c
index 1fd33a9..0f7a6bd 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -2225,7 +2225,8 @@ void summary_select_by_msg_list(SummaryView	*summaryview, GSList *msginfos)
 	for(walk = msgnum_list; walk; walk = walk->next) {
 		GtkCMCTreeNode *node;
 		node = summary_find_msg_by_msgnum(summaryview, GPOINTER_TO_UINT(walk->data));
-		gtk_cmctree_select(ctree, node);
+		if (node != NULL)
+			gtk_cmctree_select(ctree, node);
 	}
 	END_LONG_OPERATION(summaryview);
 	g_slist_free(msgnum_list);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list