From 35ce75e29c0b0d822514563c21c6641514628dce Mon Sep 17 00:00:00 2001 From: un-pogaz <46523284+un-pogaz@users.noreply.github.com> Date: Thu, 30 Jan 2025 17:35:34 +0100 Subject: [PATCH] fix a exception when trying to edit a rule recently created when commiting the change, TypeError: 'tuple' object does not support item assignment this only occurs if the rule was create during the current session but not in a new session --- src/calibre/gui2/preferences/look_feel_tabs/tb_icon_rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/preferences/look_feel_tabs/tb_icon_rules.py b/src/calibre/gui2/preferences/look_feel_tabs/tb_icon_rules.py index 4e16173e1d..84902d7caa 100644 --- a/src/calibre/gui2/preferences/look_feel_tabs/tb_icon_rules.py +++ b/src/calibre/gui2/preferences/look_feel_tabs/tb_icon_rules.py @@ -532,7 +532,7 @@ class TbIconRulesTab(LazyConfigWidgetBase, Ui_Form): continue icon_item = self.rules_table.item(r, ICON_COLUMN) - d = v[cat_item.lookup_name][value_text] + d = list(v[cat_item.lookup_name][value_text]) if icon_item.is_modified: if value_item.is_template: