Fix saving notes without marker being set.

svn: r10018
This commit is contained in:
Brian Matherly
2008-02-12 04:21:14 +00:00
parent a1897e68d9
commit ddd23a5164
2 changed files with 6 additions and 2 deletions

View File

@@ -484,6 +484,9 @@ class EditNote(EditPrimary):
def save(self, *obj):
"""Save the data."""
self.ok_button.set_sensitive(False)
self.update_note()
if self.object_is_empty():
ErrorDialog(_("Cannot save note"),
_("No data exists for this note. Please "
@@ -505,8 +508,6 @@ class EditNote(EditPrimary):
trans = self.db.transaction_begin()
self.update_note()
if not self.obj.get_handle():
self.db.add_note(self.obj, trans)
msg = _("Add Note")