From bf05cf734983a8b995926cc3a3a79b6cfd7d1146 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D0=BB=D0=B8=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD?= Date: Tue, 12 Sep 2017 11:27:18 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/libs@277 a8b55f48-bf90-11e4-a774-851b48703e85 --- qad/blockview/drawtools.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;