mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1103504 (Crashed by column color tab)
This commit is contained in:
parent
7e2ad6914d
commit
276939c39b
@ -413,6 +413,7 @@ class RulesModel(QAbstractListModel): # {{{
|
|||||||
rules = list(prefs['column_color_rules'])
|
rules = list(prefs['column_color_rules'])
|
||||||
self.rules = []
|
self.rules = []
|
||||||
for col, template in rules:
|
for col, template in rules:
|
||||||
|
if col not in self.fm: continue
|
||||||
try:
|
try:
|
||||||
rule = rule_from_template(self.fm, template)
|
rule = rule_from_template(self.fm, template)
|
||||||
except:
|
except:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user