From 22b32f3ca3f73304366ec4995b5c6e083d9da836 Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Thu, 3 Jan 2008 13:56:03 +0000 Subject: [PATCH] 2008-01-03 Gary Burton * src/GrampsWidgets.py: allow MonitoredEntry widgets to be updated with empty strings. I fixed this issue in trunk 2 months ago and no ill effects have been reported. issue #1314 svn: r9697 --- ChangeLog | 5 +++++ src/GrampsWidgets.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a800bc2da..bb7341869 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-03 Gary Burton + * src/GrampsWidgets.py: allow MonitoredEntry widgets to be updated with + empty strings. I fixed this issue in trunk 2 months ago and no ill effects + have been reported. issue #1314 + 2008-01-03 Jerome Rapinat * src/GrampsDb/_ReadGrdb.py * src/GrampsDb/_ReadXML.py: removed "Family Tree" on translation string, used "database" diff --git a/src/GrampsWidgets.py b/src/GrampsWidgets.py index 59c6ae49a..9a1889ac6 100644 --- a/src/GrampsWidgets.py +++ b/src/GrampsWidgets.py @@ -370,7 +370,7 @@ class MonitoredEntry: self.obj.grab_focus() def update(self): - if self.get_val(): + if self.get_val() is not None: self.obj.set_text(self.get_val()) class MonitoredText: