DVEvent: press key escape, abort the curent action

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3369 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-10-10 18:16:02 +00:00
parent 743b6768eb
commit 1a842dc263
5 changed files with 46 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ DVEventAddShape::DVEventAddShape(DiagramView *dv, QetShapeItem::ShapeType shape_
* @brief DVEventAddShape::~DVEventAddShape
*/
DVEventAddShape::~DVEventAddShape() {
if (m_running) {
if (m_running || m_abort) {
m_diagram -> removeItem(m_shape_item);
delete m_shape_item;
}