commit 279f0a2bf1d6b856ac89564d56a14369355b72d2
parent afd6c99509d5a7dda27cecb0101aba3113be5c21
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:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/mainwindow.c b/src/mainwindow.c
@@ -4654,9 +4654,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;
@@ -4665,6 +4669,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)