4950: Unhandled exception upon closing Gramps with an undocked gramplet

svn: r17639
This commit is contained in:
Doug Blank 2011-05-31 17:34:31 +00:00
parent ab94917070
commit 7901808c88

View File

@ -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