From 1cfec4947d837e8923053b99e8de72f4bf2e1558 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Mon, 5 Sep 2022 11:06:51 +0100 Subject: [PATCH] Bug fix: when creating a new yes/no column, nothing was selected for what to show. If the user doesn't select one of the choices, nothing is shown in the library view. --- src/calibre/gui2/preferences/create_custom_column.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/preferences/create_custom_column.py b/src/calibre/gui2/preferences/create_custom_column.py index 3e3b41ef00..5a707a9ea7 100644 --- a/src/calibre/gui2/preferences/create_custom_column.py +++ b/src/calibre/gui2/preferences/create_custom_column.py @@ -333,6 +333,7 @@ class CreateCustomColumn(QDialog): h1.addWidget(b) return b self.bool_show_icon_button = add_bool_radio_button(_('&Icon')) + self.bool_show_icon_button.setChecked(True) self.bool_show_text_button = add_bool_radio_button(_('&Text')) self.bool_show_both_button = add_bool_radio_button(_('&Both')) self.bool_button_group = QGroupBox()