Allow delete object when creating a path.
--HG-- branch : feature
This commit is contained in:
parent
c2da41bbf0
commit
1f96114c0b
|
@ -247,7 +247,6 @@ void DialogPiecePath::ShowContextMenu(const QPoint &pos)
|
|||
|
||||
QMenu *menu = new QMenu(this);
|
||||
QAction *actionDelete = menu->addAction(QIcon::fromTheme("edit-delete"), tr("Delete"));
|
||||
actionDelete->setEnabled(m_showMode);//Because we can't undo this operation when creating a piece.
|
||||
|
||||
QListWidgetItem *rowItem = ui->listWidget->item(row);
|
||||
SCASSERT(rowItem != nullptr);
|
||||
|
|
Loading…
Reference in New Issue
Block a user