Improve memory allocation.
--HG-- branch : develop
This commit is contained in:
parent
20107a35f8
commit
714a180b31
|
@ -629,7 +629,7 @@ void DialogSeamAllowance::ShowPinsContextMenu(const QPoint &pos)
|
|||
return;
|
||||
}
|
||||
|
||||
QMenu *menu = new QMenu(this);
|
||||
QScopedPointer<QMenu> menu(new QMenu());
|
||||
QAction *actionDelete = menu->addAction(QIcon::fromTheme("edit-delete"), tr("Delete"));
|
||||
|
||||
QAction *selectedAction = menu->exec(ui->listWidgetPins->viewport()->mapToGlobal(pos));
|
||||
|
|
Loading…
Reference in New Issue
Block a user