summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-30 09:31:22 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-30 09:31:22 -0700
commit74d89fc818a17bccec81d4b1a868a82d38518b55 (patch)
tree95ade10359eccf026bdc633eca2a1a045cff9fd7 /qt-ui
parent1a978a0345a1e817f37850954e169d3543b2fb93 (diff)
downloadsubsurface-74d89fc818a17bccec81d4b1a868a82d38518b55.tar.gz
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>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/profile/profilewidget2.cpp1
1 files changed, 1 insertions, 0 deletions
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<DiveHandler *>(i)) {
selectedIndexes.push_back(handles.indexOf(handler));
+ handler->hide();
}
}
plannerModel->removeSelectedPoints(selectedIndexes);