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>
This commit is contained in:
Lubomir I. Ivanov 2015-03-13 02:32:50 +02:00 committed by Dirk Hohndel
parent da2d5b5ee1
commit 57374fb9f0

View file

@ -1069,6 +1069,7 @@ void ProfileWidget2::setAddState()
if (currentState == ADD)
return;
clearHandlers();
setProfileState();
mouseFollowerHorizontal->setVisible(true);
mouseFollowerVertical->setVisible(true);