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:
Dirk Hohndel 2014-07-30 09:31:22 -07:00
parent 1a978a0345
commit 74d89fc818

View file

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