Allow delete object when creating a main path.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-12-03 18:53:09 +02:00
parent ffa241ea0d
commit 0d1179a451

View file

@ -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);