From 0d1179a451a8f83bb8021ca19243d4e45a30a4cd Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 3 Dec 2016 18:53:09 +0200 Subject: [PATCH] Allow delete object when creating a main path. --HG-- branch : feature --- src/libs/vtools/dialogs/tools/dialogseamallowance.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libs/vtools/dialogs/tools/dialogseamallowance.cpp b/src/libs/vtools/dialogs/tools/dialogseamallowance.cpp index f08bcb45b..192e709b2 100644 --- a/src/libs/vtools/dialogs/tools/dialogseamallowance.cpp +++ b/src/libs/vtools/dialogs/tools/dialogseamallowance.cpp @@ -297,7 +297,6 @@ void DialogSeamAllowance::ShowMainPathContextMenu(const QPoint &pos) QMenu *menu = new QMenu(this); QAction *actionDelete = menu->addAction(QIcon::fromTheme("edit-delete"), tr("Delete")); - actionDelete->setEnabled(applyAllowed);//Because we can't undo this operation when creating a piece. QListWidgetItem *rowItem = ui->listWidgetMainPath->item(row); SCASSERT(rowItem != nullptr);