Fix error when blanking the column box of a condition in a coloring rule

This commit is contained in:
Kovid Goyal 2011-06-04 09:48:57 -06:00
parent 66f98e8ee2
commit 5ac8b6bdfa

View File

@ -159,6 +159,7 @@ class ConditionEditor(QWidget): # {{{
self.action_box.clear()
self.action_box.addItem('', '')
col = self.current_col
if col:
m = self.fm[col]
dt = m['datatype']
if dt in self.action_map:
@ -184,10 +185,12 @@ class ConditionEditor(QWidget): # {{{
self.value_box.setInputMask('')
self.value_box.setValidator(None)
col = self.current_col
if not col:
return
m = self.fm[col]
dt = m['datatype']
action = self.current_action
if not col or not action:
if not action:
return
tt = ''
if col == 'identifiers':