diff --git a/qad/blockview/drawtools.cpp b/qad/blockview/drawtools.cpp index 2e01120..195135a 100644 --- a/qad/blockview/drawtools.cpp +++ b/qad/blockview/drawtools.cpp @@ -141,8 +141,10 @@ QRectF _DTSizeItem::boundingRect() const { bool _DTSizeItem::sceneEventFilter(QGraphicsItem * watched, QEvent * event) { QGraphicsSceneMouseEvent * me = (QGraphicsSceneMouseEvent * )event; if (watched == cur_item) { - if (event->type() == QEvent::Close) + if (event->type() == QEvent::Close) { assignObject(0); + return true; + } if (event->type() == QEvent::GraphicsSceneMouseDoubleClick) { doubleClick(); return true;