fix sensitivity and state of 'hide read threads'
authorPaul <paul@claws-mail.org>
Tue, 3 Dec 2013 11:22:22 +0000 (11:22 +0000)
committerPaul <paul@claws-mail.org>
Tue, 3 Dec 2013 11:22:22 +0000 (11:22 +0000)
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.

src/mainwindow.c

index 7830646bf8a275a67b0d32fbb2060ba5ac13f8bb..95f93e468f56d0a36a62d0eeb1ab27f29cf4b874 100644 (file)
@@ -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)