Skip to content

Commit

Permalink
fix #1166 avoid showing italic option for mods that have no headings …
Browse files Browse the repository at this point in the history
…at all. ops->heading might be a lie.
  • Loading branch information
karlkleinpaste committed Aug 15, 2024
1 parent 17a47ea commit f23c8a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gtk/menu_popup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1769,7 +1769,9 @@ G_MODULE_EXPORT void _add_and_check_global_opts(GladeXML *gxml,

item = UI_GET_ITEM(gxml, "italic_headings");

if (ops->headings) {
if (ops->headings &&
(main_check_for_global_option((gchar *)mod_name, "ThMLHeadings") ||
main_check_for_global_option((gchar *)mod_name, "OSISHeadings"))) {
gtk_widget_show(item);
gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(item),
ops->italic_headings);
Expand Down

0 comments on commit f23c8a0

Please sign in to comment.