gramps/gramps-4.0.1-validatedmaskedentry_no_attribute__block_changed.patch

56 lines
1.9 KiB
Diff

From 425f414e5b6377425c4c43adb6a9e111f89ce6ca Mon Sep 17 00:00:00 2001
From: Benny Malengier <benny.malengier@gramps-project.org>
Date: Sun, 30 Jun 2013 15:52:04 +0000
Subject: [PATCH] 6807: validatedmaskedentry: no attribute '_block_changed'
git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/trunk@22630 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
---
gramps/gui/widgets/validatedmaskedentry.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/gramps/gui/widgets/validatedmaskedentry.py b/gramps/gui/widgets/validatedmaskedentry.py
index 36e1fd9..325d0d9 100644
--- a/gramps/gui/widgets/validatedmaskedentry.py
+++ b/gramps/gui/widgets/validatedmaskedentry.py
@@ -235,6 +235,7 @@ class MaskedEntry(UndoableEntry):
__gtype_name__ = 'MaskedEntry'
def __init__(self):
+ self._block_changed = False
UndoableEntry.__init__(self)
# connect in UndoableEntry:
@@ -253,7 +254,6 @@ def __init__(self):
self._completion = None
self._exact_completion = False
- self._block_changed = False
self.hasicon = False
## self._icon = IconEntry(self)
@@ -1157,10 +1157,10 @@ def __init__(self, data_type=None, err_color = "#ffd5d5", error_icon=ERROR_ICON)
self.data_type = None
self.mandatory = False
self.error_icon = error_icon
+ self._block_changed = False
MaskedEntry.__init__(self)
- self._block_changed = False
self._valid = True
self._def_error_msg = None
self._fade = FadeOut(self, err_color)
@@ -1171,7 +1171,8 @@ def __init__(self, data_type=None, err_color = "#ffd5d5", error_icon=ERROR_ICON)
# Virtual methods
def do_changed(self):
- if self._block_changed:
+ block_changed = getattr(self, '_block_changed', True)
+ if block_changed:
self.emit_stop_by_name('changed')
return
self.emit('content-changed')
--
1.8.1.6