2006-11-17 Don Allingham <don@gramps-project.org>
* src/ManagedWindow.py: catch missing item error svn: r7642
This commit is contained in:
parent
0cff6a26d0
commit
b65125d904
@ -1,3 +1,6 @@
|
|||||||
|
2006-11-17 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/ManagedWindow.py: catch missing item error
|
||||||
|
|
||||||
2006-11-16 Don Allingham <don@gramps-project.org>
|
2006-11-16 Don Allingham <don@gramps-project.org>
|
||||||
* src/DataViews/_RelationView.py: share parents button
|
* src/DataViews/_RelationView.py: share parents button
|
||||||
* src/images/share-fam.png: share parents button
|
* src/images/share-fam.png: share parents button
|
||||||
|
@ -118,11 +118,14 @@ class GrampsWindowManager:
|
|||||||
def close_track(self,track):
|
def close_track(self,track):
|
||||||
# This is called when item needs to be closed
|
# This is called when item needs to be closed
|
||||||
# Closes all its children and then removes the item from the tree.
|
# Closes all its children and then removes the item from the tree.
|
||||||
item = self.get_item_from_track(track)
|
try:
|
||||||
self.recursive_action(item,self.close_item)
|
item = self.get_item_from_track(track)
|
||||||
# This only needs to be run once for the highest level point
|
self.recursive_action(item,self.close_item)
|
||||||
# to remove.
|
# This only needs to be run once for the highest level point
|
||||||
self.remove_item(track)
|
# to remove.
|
||||||
|
self.remove_item(track)
|
||||||
|
except IndexError:
|
||||||
|
print "Missing item from window manager", track, self.close_item
|
||||||
|
|
||||||
def recursive_action(self,item,func,*args):
|
def recursive_action(self,item,func,*args):
|
||||||
# This function recursively calls itself over the child items
|
# This function recursively calls itself over the child items
|
||||||
|
Loading…
Reference in New Issue
Block a user