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 e95fe692ba
commit 49321133e0

View File

@ -301,6 +301,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)