4839: Old notes info is kept when a new family tree is created. Fixed QuickView Gramplet
svn: r17144
This commit is contained in:
parent
c784055f94
commit
53d267c3ed
@ -56,6 +56,9 @@ class QuickViewGramplet(Gramplet):
|
|||||||
self.connect_signal('Media', self._active_changed)
|
self.connect_signal('Media', self._active_changed)
|
||||||
self.connect_signal('Note', 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):
|
def on_load(self):
|
||||||
if len(self.gui.data) != 2:
|
if len(self.gui.data) != 2:
|
||||||
self.gui.data[:] = ["Person", None]
|
self.gui.data[:] = ["Person", None]
|
||||||
@ -84,6 +87,7 @@ class QuickViewGramplet(Gramplet):
|
|||||||
container=self.gui.textview)
|
container=self.gui.textview)
|
||||||
self.set_has_data(docman.document.has_data)
|
self.set_has_data(docman.document.has_data)
|
||||||
else:
|
else:
|
||||||
|
self.clear_text()
|
||||||
self.set_has_data(False)
|
self.set_has_data(False)
|
||||||
|
|
||||||
def update_has_data(self):
|
def update_has_data(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user