4950: Unhandled exception upon closing Gramps with an undocked gramplet

svn: r17638
This commit is contained in:
Doug Blank 2011-05-31 17:33:37 +00:00
parent 2f647a443c
commit 5329944ca2

View File

@ -1200,7 +1200,8 @@ class GrampletPane(gtk.ScrolledWindow):
for key in base_opts: for key in base_opts:
if key == "content": continue if key == "content": continue
elif key == "title": elif key == "title":
if self.title_override: if "title_override" in base_opts:
base_opts["title"] = base_opts["title_override"]
fp.write(("title=%s" + NL)% base_opts[key]) fp.write(("title=%s" + NL)% base_opts[key])
elif key == "tname": continue elif key == "tname": continue
elif key == "version": continue # code, don't save elif key == "version": continue # code, don't save