5451: 'Clear' clipboard causes crashes

svn: r18632
This commit is contained in:
Michiel Nauta 2011-12-19 14:32:57 +00:00
parent f2d9da1fe0
commit 9d3cf48703

View File

@ -1304,6 +1304,7 @@ class ScratchPadWindow(ManagedWindow.ManagedWindow):
"""Deletes the selected object from the object list""" """Deletes the selected object from the object list"""
selection = self.object_list.get_selection() selection = self.object_list.get_selection()
model, paths = selection.get_selected_rows() model, paths = selection.get_selected_rows()
paths.reverse()
for path in paths: for path in paths:
node = model.get_iter(path) node = model.get_iter(path)
if node: if node: