4839: Old notes info is kept when a new family tree is created. Fixed QuickView Gramplet

svn: r17143
This commit is contained in:
Doug Blank 2011-04-18 13:26:25 +00:00
parent d011a9164b
commit ec28db1a7d

View File

@ -56,6 +56,9 @@ class QuickViewGramplet(Gramplet):
self.connect_signal('Media', self._active_changed)
self.connect_signal('Note', self._active_changed)
def clear_text(self):
self.gui.textview.get_buffer().set_text("")
def on_load(self):
if len(self.gui.data) != 2:
self.gui.data[:] = ["Person", None]
@ -84,6 +87,7 @@ class QuickViewGramplet(Gramplet):
container=self.gui.textview)
self.set_has_data(docman.document.has_data)
else:
self.clear_text()
self.set_has_data(False)
def update_has_data(self):