talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 696e43087a29dad2dc23668c88106603a6230bff
parent 7639e2a87fba27056a00d58e145ba7ab963d24b0
Author: Paul <paul@claws-mail.org>
Date:   Sun,  6 Oct 2019 12:45:59 +0100

implemtent RFE 4255, "Switching 'Thread view' on/off discards message selection"

Diffstat:
Msrc/mainwindow.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/mainwindow.c b/src/mainwindow.c @@ -4623,9 +4623,13 @@ static void thread_cb(GtkAction *action, gpointer data) { MainWindow *mainwin = (MainWindow *)data; gboolean threaded = FALSE; + guint selected_msgnum = 0; + if (mainwin->menu_lock_count) return; if (!mainwin->summaryview->folder_item) return; + selected_msgnum = summary_get_msgnum(mainwin->summaryview, mainwin->summaryview->selected); + threaded = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)); mainwin->summaryview->folder_item->threaded = threaded; @@ -4634,6 +4638,7 @@ static void thread_cb(GtkAction *action, gpointer data) summary_show(mainwin->summaryview, mainwin->summaryview->folder_item); + summary_select_by_msgnum(mainwin->summaryview, selected_msgnum, FALSE); } static void expand_threads_cb(GtkAction *action, gpointer data)