* src/ScratchPad.py: check for null model
svn: r6891
This commit is contained in:
parent
26f17e296e
commit
fc74ec2662
@ -1,4 +1,5 @@
|
||||
2006-06-14 Don Allingham <don@gramps-project.org>
|
||||
* src/ScratchPad.py: check for null model
|
||||
* src/GrampsDb/_ReadGedcom.py: fix INT date format
|
||||
|
||||
2006-06-14 Alex Roitman <shura@gramps-project.org>
|
||||
|
@ -743,9 +743,10 @@ class ScratchPadListView:
|
||||
def remove_invalid_objects(self,dummy=None):
|
||||
model = self._widget.get_model()
|
||||
|
||||
for o in model:
|
||||
if not o.is_valid():
|
||||
model.remove(o)
|
||||
if model:
|
||||
for o in model:
|
||||
if not o.is_valid():
|
||||
model.remove(o)
|
||||
|
||||
# Method to manage the wrapper classes.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user