Fix #1103504 (Crashed by column color tab)

This commit is contained in:
Kovid Goyal 2013-01-23 22:12:50 +05:30
parent 7e2ad6914d
commit 276939c39b

View File

@ -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: