From 5329944ca24d543f1a3fd0b280721f24a7d8ef46 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 31 May 2011 17:33:37 +0000 Subject: [PATCH] 4950: Unhandled exception upon closing Gramps with an undocked gramplet svn: r17638 --- src/gui/widgets/grampletpane.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/widgets/grampletpane.py b/src/gui/widgets/grampletpane.py index bc09ea394..d65cffc92 100644 --- a/src/gui/widgets/grampletpane.py +++ b/src/gui/widgets/grampletpane.py @@ -1200,8 +1200,9 @@ class GrampletPane(gtk.ScrolledWindow): for key in base_opts: if key == "content": continue elif key == "title": - if self.title_override: - fp.write(("title=%s" + NL)% base_opts[key]) + if "title_override" in base_opts: + base_opts["title"] = base_opts["title_override"] + fp.write(("title=%s" + NL)% base_opts[key]) elif key == "tname": continue elif key == "version": continue # code, don't save elif key == "gramps": continue # code, don't save