Skip to content

Commit

Permalink
Update boundingbox.cpp
Browse files Browse the repository at this point in the history
Add extra 'Delete' action.

Backport of e577fdf
  • Loading branch information
rodlie committed Sep 2, 2024
1 parent 6f4a75b commit 575020b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/Boxes/boundingbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,12 @@ void BoundingBox::prp_setupTreeViewMenu(PropertyMenu * const menu) {
menu->addPlainAction("Rename", [this, parentWidget]() {
PropertyNameDialog::sRenameBox(this, parentWidget);
});
const auto pScene = getParentScene();
if (pScene) {
menu->addPlainAction(tr("Delete"), [pScene]() {
pScene->removeSelectedBoxesAndClearList();
})->setShortcut(Qt::Key_Delete);
}
menu->addSeparator();
{
const PropertyMenu::CheckSelectedOp<BoundingBox> visRangeOp =
Expand Down

0 comments on commit 575020b

Please sign in to comment.