6807: validatedmaskedentry: no attribute '_block_changed'
svn: r22630
This commit is contained in:
parent
36deb5ef40
commit
2c879c794c
@ -235,6 +235,7 @@ class MaskedEntry(UndoableEntry):
|
|||||||
__gtype_name__ = 'MaskedEntry'
|
__gtype_name__ = 'MaskedEntry'
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
self._block_changed = False
|
||||||
UndoableEntry.__init__(self)
|
UndoableEntry.__init__(self)
|
||||||
|
|
||||||
# connect in UndoableEntry:
|
# connect in UndoableEntry:
|
||||||
@ -253,7 +254,6 @@ class MaskedEntry(UndoableEntry):
|
|||||||
|
|
||||||
self._completion = None
|
self._completion = None
|
||||||
self._exact_completion = False
|
self._exact_completion = False
|
||||||
self._block_changed = False
|
|
||||||
self.hasicon = False
|
self.hasicon = False
|
||||||
## self._icon = IconEntry(self)
|
## self._icon = IconEntry(self)
|
||||||
|
|
||||||
@ -1157,10 +1157,10 @@ class ValidatableMaskedEntry(MaskedEntry):
|
|||||||
self.data_type = None
|
self.data_type = None
|
||||||
self.mandatory = False
|
self.mandatory = False
|
||||||
self.error_icon = error_icon
|
self.error_icon = error_icon
|
||||||
|
self._block_changed = False
|
||||||
|
|
||||||
MaskedEntry.__init__(self)
|
MaskedEntry.__init__(self)
|
||||||
|
|
||||||
self._block_changed = False
|
|
||||||
self._valid = True
|
self._valid = True
|
||||||
self._def_error_msg = None
|
self._def_error_msg = None
|
||||||
self._fade = FadeOut(self, err_color)
|
self._fade = FadeOut(self, err_color)
|
||||||
@ -1171,7 +1171,8 @@ class ValidatableMaskedEntry(MaskedEntry):
|
|||||||
|
|
||||||
# Virtual methods
|
# Virtual methods
|
||||||
def do_changed(self):
|
def do_changed(self):
|
||||||
if self._block_changed:
|
block_changed = getattr(self, '_block_changed', True)
|
||||||
|
if block_changed:
|
||||||
self.emit_stop_by_name('changed')
|
self.emit_stop_by_name('changed')
|
||||||
return
|
return
|
||||||
self.emit('content-changed')
|
self.emit('content-changed')
|
||||||
|
Loading…
Reference in New Issue
Block a user