9878: Update note text before closing

The object must be updated so that changes can be detected.
This commit is contained in:
Nick Hall 2017-01-03 21:22:46 +00:00
parent 5f2a6df0d0
commit 49416739c1

View File

@ -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)