Fix for removing items from the clipboard.
This commit is contained in:
parent
ed99a8bbff
commit
0bf1d579e2
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user