Allow delete object when creating a path.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-12-03 19:47:17 +02:00
parent c2da41bbf0
commit 1f96114c0b

View file

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