From 3c2cbe68f20dfc8bc065c3c9dfc8c2debc594962 Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Thu, 25 Oct 2007 21:22:42 +0000 Subject: [PATCH] 2007-10-25 Gary Burton * src/GrampsWidgets.py: allow MonitoredEntry widgets to be updated with empty strings. issue #1314 svn: r9248 --- ChangeLog | 4 ++++ src/GrampsWidgets.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7d3d11136..b4f788ab4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-10-25 Gary Burton + * src/GrampsWidgets.py: allow MonitoredEntry widgets to be updated with + empty strings. issue #1314 + 2007-10-25 Benny Malengier * src/plugins/lineage.py: gen variable conflicts with module gen diff --git a/src/GrampsWidgets.py b/src/GrampsWidgets.py index 1b2db7e93..2bf3bc61c 100644 --- a/src/GrampsWidgets.py +++ b/src/GrampsWidgets.py @@ -412,7 +412,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 MonitoredSpinButton: