From 34d49e1752a1d0f9784f8801790f92a7860db48f Mon Sep 17 00:00:00 2001 From: Mika Fischer Date: Thu, 16 Jun 2011 16:58:06 +0200 Subject: [PATCH] Fix deleting of annotations --- sloth/gui/annotationscene.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sloth/gui/annotationscene.py b/sloth/gui/annotationscene.py index 65835f2..1df2a58 100644 --- a/sloth/gui/annotationscene.py +++ b/sloth/gui/annotationscene.py @@ -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: