* src/ScratchPad.py: check for null model
svn: r6891
This commit is contained in:
@ -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.
|
||||
|
||||
|
Reference in New Issue
Block a user