Fix for removing items from the clipboard.

This commit is contained in:
Tomeu Vizoso 2007-03-20 12:58:52 +01:00
parent ed99a8bbff
commit 0bf1d579e2

View File

@ -130,7 +130,7 @@ class ClipboardBox(hippo.CanvasBox):
position = self.get_children().index(icon) position = self.get_children().index(icon)
self.remove(icon) self.remove(icon)
if icon.props.selected: if icon.props.selected and self.get_children():
self._set_icon_selected(self.get_children()[position]) self._set_icon_selected(self.get_children()[position])
del self._icons[object_id] del self._icons[object_id]