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); QMenu *menu = new QMenu(this);
QAction *actionDelete = menu->addAction(QIcon::fromTheme("edit-delete"), tr("Delete")); 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); QListWidgetItem *rowItem = ui->listWidgetMainPath->item(row);
SCASSERT(rowItem != nullptr); SCASSERT(rowItem != nullptr);