[Commits] [SCM] claws branch, master, updated. 3.17.4-43-g279f0a2bf

paul at claws-mail.org paul at claws-mail.org
Sun Oct 6 11:46:06 CET 2019


The branch, master has been updated
       via  279f0a2bf1d6b856ac89564d56a14369355b72d2 (commit)
      from  afd6c99509d5a7dda27cecb0101aba3113be5c21 (commit)

Summary of changes:
 src/mainwindow.c | 5 +++++
 1 file changed, 5 insertions(+)


- Log -----------------------------------------------------------------
commit 279f0a2bf1d6b856ac89564d56a14369355b72d2
Author: Paul <paul at claws-mail.org>
Date:   Sun Oct 6 12:45:59 2019 +0100

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

diff --git a/src/mainwindow.c b/src/mainwindow.c
index 9001ba20d..62eea35ff 100644
--- 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)

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list