2008-01-06 Douglas S. Blank <dblank@cs.brynmawr.edu>

* src/DataViews/MyGrampsView.py (MyGrampsView.clear_gadgets): 
	Protect on re-columning from gadgets that have been removed



svn: r9723
This commit is contained in:
Doug Blank 2008-01-06 13:03:28 +00:00
parent 9664842702
commit c4b215b3f0
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2008-01-06 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/DataViews/MyGrampsView.py (MyGrampsView.clear_gadgets):
Protect on re-columning from gadgets that have been removed
2008-01-06 Benny Malengier <benny.malengier@gramps-project.org> 2008-01-06 Benny Malengier <benny.malengier@gramps-project.org>
* src/DataViews/MediaView.py: * src/DataViews/MediaView.py:
* src/DataViews/RepositoryView.py: * src/DataViews/RepositoryView.py:

View File

@ -590,6 +590,7 @@ class MyGrampsView(PageView.PageView):
gadgets = [g for g in self.gadget_map.values() if g != None] gadgets = [g for g in self.gadget_map.values() if g != None]
for gadget in gadgets: for gadget in gadgets:
column = gadget.mainframe.get_parent() column = gadget.mainframe.get_parent()
if column:
column.remove(gadget.mainframe) column.remove(gadget.mainframe)
def place_gadgets(self): def place_gadgets(self):