diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-07-30 09:31:22 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-30 09:31:22 -0700 |
commit | 74d89fc818a17bccec81d4b1a868a82d38518b55 (patch) | |
tree | 95ade10359eccf026bdc633eca2a1a045cff9fd7 /qt-ui | |
parent | 1a978a0345a1e817f37850954e169d3543b2fb93 (diff) | |
download | subsurface-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.cpp | 1 |
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); |