From 7b809672bb5a4c10be433fdec4720ac398077258 Mon Sep 17 00:00:00 2001 From: Alfons Hoogervorst Date: Tue, 24 Dec 2002 11:35:16 +0000 Subject: [PATCH] * src/summaryview.c summary_thread_build(): fix crash because of focus != selection after threading. when deleting the selection, gtk tries but fails to find the correct focusable element. we now force the selection to be focused. this should solve the infamous bug reported by Jason Wojciechowski (bug "[ 633443 ] Crash on deleting messages"). a test case is available. --- ChangeLog.claws | 10 ++++++++++ configure.in | 2 +- src/summaryview.c | 2 ++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog.claws b/ChangeLog.claws index 392353f5e..f20685a52 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,3 +1,13 @@ +2002-12-24 [alfons] 0.8.7claws3 + + * src/summaryview.c + summary_thread_build(): fix crash because of focus != selection + after threading. when deleting the selection, gtk tries but fails + to find the correct focusable element. we now force the selection + to be focused. this should solve the infamous bug reported by + Jason Wojciechowski (bug "[ 633443 ] Crash on deleting messages"). + a test case is available. + 2002-12-24 [darko] 0.8.7claws2 * src/summaryview.c diff --git a/configure.in b/configure.in index 47c8a5eee..3979fba91 100644 --- a/configure.in +++ b/configure.in @@ -11,7 +11,7 @@ MINOR_VERSION=8 MICRO_VERSION=7 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=claws2 +EXTRA_VERSION=claws3 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION dnl set $target diff --git a/src/summaryview.c b/src/summaryview.c index f04c1b29a..bec3c1c9a 100644 --- a/src/summaryview.c +++ b/src/summaryview.c @@ -3747,6 +3747,8 @@ void summary_thread_build(SummaryView *summaryview) node = next; } + gtkut_ctree_set_focus_row(ctree, summaryview->selected); + gtk_clist_thaw(GTK_CLIST(ctree)); gtk_signal_handler_unblock_by_func(GTK_OBJECT(ctree), summary_tree_expanded, summaryview); -- 2.25.1