mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:53:23 +00:00
Planner / Add dive: hide handler after removing it
Otherwise users can still interact with it. Fixes #648 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1a978a0345
commit
74d89fc818
1 changed files with 1 additions and 0 deletions
|
@ -1328,6 +1328,7 @@ void ProfileWidget2::keyDeleteAction()
|
||||||
Q_FOREACH (QGraphicsItem *i, scene()->selectedItems()) {
|
Q_FOREACH (QGraphicsItem *i, scene()->selectedItems()) {
|
||||||
if (DiveHandler *handler = qgraphicsitem_cast<DiveHandler *>(i)) {
|
if (DiveHandler *handler = qgraphicsitem_cast<DiveHandler *>(i)) {
|
||||||
selectedIndexes.push_back(handles.indexOf(handler));
|
selectedIndexes.push_back(handles.indexOf(handler));
|
||||||
|
handler->hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
plannerModel->removeSelectedPoints(selectedIndexes);
|
plannerModel->removeSelectedPoints(selectedIndexes);
|
||||||
|
|
Loading…
Add table
Reference in a new issue