mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-02 01:40:52 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user