2006-10-03 Don Allingham <don@gramps-project.org>
* src/GrampsLogger/_ErrorReportAssistant.py: capitalize "GRAMPS" * src/ViewManager.py: display buttons on first open * src/Editors/_EditSourceRef.py: fix cancelling of text (bug #450) * src/DisplayTabs/_NoteTab.py: fix cancelling of text * src/DisplayTabs/_TextTab.py: fix cancelling of text svn: r7345
This commit is contained in:
@@ -51,6 +51,8 @@ class NoteTab(GrampsTab):
|
||||
|
||||
def __init__(self, dbstate, uistate, track, note_obj, title=_('Note')):
|
||||
self.note_obj = note_obj
|
||||
self.original = note_obj.serialize()
|
||||
|
||||
GrampsTab.__init__(self, dbstate, uistate, track, title)
|
||||
self.show_all()
|
||||
|
||||
@@ -141,3 +143,6 @@ class NoteTab(GrampsTab):
|
||||
|
||||
def rebuild(self):
|
||||
self._set_label()
|
||||
|
||||
def cancel(self):
|
||||
self.note_obj.unserialize(self.original)
|
||||
|
@@ -51,6 +51,7 @@ class TextTab(GrampsTab):
|
||||
|
||||
def __init__(self, dbstate, uistate, track, obj, title=_('Text')):
|
||||
self.obj = obj
|
||||
self.original = obj.serialize()
|
||||
GrampsTab.__init__(self, dbstate, uistate, track, title)
|
||||
self.show_all()
|
||||
|
||||
@@ -106,3 +107,6 @@ class TextTab(GrampsTab):
|
||||
|
||||
def rebuild(self):
|
||||
self._set_label()
|
||||
|
||||
def cancel(self):
|
||||
self.obj.unserialize(self.original)
|
||||
|
Reference in New Issue
Block a user