From 53d267c3ed8958ded95cc600a2d4d90f6ea2ce42 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Mon, 18 Apr 2011 13:26:59 +0000 Subject: [PATCH] 4839: Old notes info is kept when a new family tree is created. Fixed QuickView Gramplet svn: r17144 --- src/plugins/gramplet/QuickViewGramplet.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/gramplet/QuickViewGramplet.py b/src/plugins/gramplet/QuickViewGramplet.py index 272f7f7ab..a4ea56522 100644 --- a/src/plugins/gramplet/QuickViewGramplet.py +++ b/src/plugins/gramplet/QuickViewGramplet.py @@ -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):