From 1d3e59662db30f382e3d6fe0a65e3860fc6a3089 Mon Sep 17 00:00:00 2001 From: Alfons Hoogervorst Date: Wed, 27 Jun 2001 20:44:28 +0000 Subject: [PATCH] bugfix: don't crash if parent node deleted from thread attracted by subject line --- ChangeLog.claws | 17 ++++++++++++----- src/summaryview.c | 7 +++++++ 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/ChangeLog.claws b/ChangeLog.claws index 1d8595470..9a3fbdc51 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,10 +1,17 @@ 2001-06-27 [alfons] - * src/summaryview.c - * src/compose.[ch] - * src/mainwindow.c - if there are multiple messages selected, allow forwarding - them as attachments. + * src/summaryview.c + don't crash when removing parent node of messages + attracted by subject. this was caused by not deleting + the parent node from the subject line hash table. + +2001-06-27 [alfons] + + * src/summaryview.c + * src/compose.[ch] + * src/mainwindow.c + if there are multiple messages selected, allow forwarding + them as attachments. 2001-06-27 [paul] diff --git a/src/summaryview.c b/src/summaryview.c index fd849fa44..501246ea8 100644 --- a/src/summaryview.c +++ b/src/summaryview.c @@ -2734,6 +2734,13 @@ static void summary_execute_delete_func(GtkCTree *ctree, GtkCTreeNode *node, msginfo->msgid)) g_hash_table_remove(summaryview->msgid_table, msginfo->msgid); + + if (msginfo->subject && + node == subject_table_lookup(summaryview->subject_table, + msginfo->subject)) { + gchar *s = msginfo->subject + (g_strncasecmp(msginfo->subject, "Re: ", 4) == 0 ? 4 : 0); + g_hash_table_remove(summaryview->subject_table, s); + } } } -- 2.25.1