From c4b215b3f010c22ffe64cd8fd8949f8e9877e6db Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 6 Jan 2008 13:03:28 +0000 Subject: [PATCH] 2008-01-06 Douglas S. Blank * src/DataViews/MyGrampsView.py (MyGrampsView.clear_gadgets): Protect on re-columning from gadgets that have been removed svn: r9723 --- ChangeLog | 4 ++++ src/DataViews/MyGrampsView.py | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dd705228f..4e17f48d3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-01-06 Douglas S. Blank + * src/DataViews/MyGrampsView.py (MyGrampsView.clear_gadgets): + Protect on re-columning from gadgets that have been removed + 2008-01-06 Benny Malengier * src/DataViews/MediaView.py: * src/DataViews/RepositoryView.py: diff --git a/src/DataViews/MyGrampsView.py b/src/DataViews/MyGrampsView.py index 8495f6353..da9048acb 100644 --- a/src/DataViews/MyGrampsView.py +++ b/src/DataViews/MyGrampsView.py @@ -590,7 +590,8 @@ class MyGrampsView(PageView.PageView): gadgets = [g for g in self.gadget_map.values() if g != None] for gadget in gadgets: column = gadget.mainframe.get_parent() - column.remove(gadget.mainframe) + if column: + column.remove(gadget.mainframe) def place_gadgets(self): """