Forbid delete objects if user is creating a piece.
--HG-- branch : feature
This commit is contained in:
parent
bff5462ef3
commit
2ed35461b6
|
@ -197,6 +197,7 @@ void DialogSeamAllowance::ShowContextMenu(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->listWidget->item(row);
|
QListWidgetItem *rowItem = ui->listWidget->item(row);
|
||||||
SCASSERT(rowItem != nullptr);
|
SCASSERT(rowItem != nullptr);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user