diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-03-13 02:32:50 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-03-14 18:17:30 -0700 |
commit | 57374fb9f0377d257dc1f6f7ef56e49653ae3e29 (patch) | |
tree | e791f5cdd1595c2d627a315f22c611c18ff4b52d | |
parent | da2d5b5ee1b48ce1bfdc82bc12bd90c35ca03aff (diff) | |
download | subsurface-57374fb9f0377d257dc1f6f7ef56e49653ae3e29.tar.gz |
Profile: call clearHandlers() in setAddState()
Points (handles) from the last dive ADD operation remain on
the profile unless we clear them.
fixes #846
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-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 90ecb94b7..e314c337f 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -1069,6 +1069,7 @@ void ProfileWidget2::setAddState() if (currentState == ADD) return; + clearHandlers(); setProfileState(); mouseFollowerHorizontal->setVisible(true); mouseFollowerVertical->setVisible(true); |