Fix saving notes without marker being set.
svn: r10018
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
2008-02-11 Brian Matherly <brian@gramps-project.org>
|
||||||
|
* src/Editors/_EditNote.py: Fix saving notes without marker being set.
|
||||||
|
|
||||||
2008-02-11 Benny Malengier <benny.malengier@gramps-project.org>
|
2008-02-11 Benny Malengier <benny.malengier@gramps-project.org>
|
||||||
* src/plugins/MediaManager.py: conversion functions of path
|
* src/plugins/MediaManager.py: conversion functions of path
|
||||||
* src/Utils.py: general methods to convert abs to rel
|
* src/Utils.py: general methods to convert abs to rel
|
||||||
|
@@ -484,6 +484,9 @@ class EditNote(EditPrimary):
|
|||||||
def save(self, *obj):
|
def save(self, *obj):
|
||||||
"""Save the data."""
|
"""Save the data."""
|
||||||
self.ok_button.set_sensitive(False)
|
self.ok_button.set_sensitive(False)
|
||||||
|
|
||||||
|
self.update_note()
|
||||||
|
|
||||||
if self.object_is_empty():
|
if self.object_is_empty():
|
||||||
ErrorDialog(_("Cannot save note"),
|
ErrorDialog(_("Cannot save note"),
|
||||||
_("No data exists for this note. Please "
|
_("No data exists for this note. Please "
|
||||||
@@ -505,8 +508,6 @@ class EditNote(EditPrimary):
|
|||||||
|
|
||||||
trans = self.db.transaction_begin()
|
trans = self.db.transaction_begin()
|
||||||
|
|
||||||
self.update_note()
|
|
||||||
|
|
||||||
if not self.obj.get_handle():
|
if not self.obj.get_handle():
|
||||||
self.db.add_note(self.obj, trans)
|
self.db.add_note(self.obj, trans)
|
||||||
msg = _("Add Note")
|
msg = _("Add Note")
|
||||||
|
Reference in New Issue
Block a user