mirror of
https://github.com/wassname/sloth.git
synced 2026-08-13 12:40:31 +08:00
Fix deleting of annotations
This commit is contained in:
@@ -226,8 +226,7 @@ class AnnotationScene(QGraphicsScene):
|
||||
# selection mode
|
||||
if event.key() == Qt.Key_Delete:
|
||||
for item in self.selectedItems():
|
||||
index = item.index()
|
||||
index.model().removeAnnotation(index)
|
||||
item.modelItem().delete()
|
||||
event.accept()
|
||||
|
||||
elif event.key() == Qt.Key_Escape:
|
||||
|
||||
Reference in New Issue
Block a user