From 57374fb9f0377d257dc1f6f7ef56e49653ae3e29 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Fri, 13 Mar 2015 02:32:50 +0200 Subject: 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 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 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); -- cgit v1.2.3-70-g09d2