From 49416739c1fbfc996bcae0ee6fe759a56a366d7e Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Tue, 3 Jan 2017 21:22:46 +0000 Subject: [PATCH] 9878: Update note text before closing The object must be updated so that changes can be detected. --- gramps/gui/editors/editnote.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gramps/gui/editors/editnote.py b/gramps/gui/editors/editnote.py index 91137974f..4f8ed54aa 100644 --- a/gramps/gui/editors/editnote.py +++ b/gramps/gui/editors/editnote.py @@ -303,6 +303,11 @@ class EditNote(EditPrimary): self.obj.set_styledtext(text) _LOG.debug(str(text)) + def close(self, *obj): + """Called when cancel button clicked.""" + self.update_note() + super().close() + def save(self, *obj): """Save the data.""" self.ok_button.set_sensitive(False)