From 74d89fc818a17bccec81d4b1a868a82d38518b55 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 30 Jul 2014 09:31:22 -0700 Subject: Planner / Add dive: hide handler after removing it Otherwise users can still interact with it. Fixes #648 Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui') diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index cc1b7eca3..b601af36e 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -1328,6 +1328,7 @@ void ProfileWidget2::keyDeleteAction() Q_FOREACH (QGraphicsItem *i, scene()->selectedItems()) { if (DiveHandler *handler = qgraphicsitem_cast(i)) { selectedIndexes.push_back(handles.indexOf(handler)); + handler->hide(); } } plannerModel->removeSelectedPoints(selectedIndexes); -- cgit v1.2.3-70-g09d2