Forbid delete objects if user is creating a piece.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-11-05 15:31:20 +02:00
parent bff5462ef3
commit 2ed35461b6

View file

@ -197,6 +197,7 @@ void DialogSeamAllowance::ShowContextMenu(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->listWidget->item(row);
SCASSERT(rowItem != nullptr);