talons

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

commit 72a27a8d0cfd7d97082b7474caa0bf4efe1ad08d
parent 0f24457ebe6bf2d3164e5f958a24deaaaba75bbf
Author: Paul <paul@claws-mail.org>
Date:   Tue,  3 Dec 2013 11:22:22 +0000

fix sensitivity and state of 'hide read threads'

This fixes this problem:
'Thread View' is set and 'Hide read threads' is set.
Unset 'Thread View', 'hide read threads' is greyed out but still set,
and 'hide read messages' is greyed out also.

With this fix, when 'Thread View' is unset, 'hide read threads' is
automatically unset too, thus 'hide read messages' is selectable.

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

diff --git a/src/mainwindow.c b/src/mainwindow.c @@ -3314,6 +3314,8 @@ do { \ cm_toggle_menu_set_active_full(mainwin->ui_manager, "Menu/View/Quotes/Collapse2", (prefs_common.hide_quotes == 2)); cm_toggle_menu_set_active_full(mainwin->ui_manager, "Menu/View/Quotes/Collapse3", (prefs_common.hide_quotes == 3)); + if (mainwin->summaryview->folder_item && !mainwin->summaryview->folder_item->threaded) + cm_toggle_menu_set_active_full(mainwin->ui_manager, "Menu/View/HideReadThreads", FALSE); if (mainwin->summaryview->folder_item && mainwin->summaryview->folder_item->hide_read_msgs) cm_menu_set_sensitive_full(mainwin->ui_manager, "Menu/View/HideReadThreads", FALSE); if (mainwin->summaryview->folder_item && mainwin->summaryview->folder_item->hide_read_threads)