diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-11-25 07:40:09 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-12-12 15:52:40 -0800 |
commit | 674c20227b2ced3bfd9b3ab29060e7a2dd5829c3 (patch) | |
tree | e734d86c09becf4f503f4c5089ca5405f7ef479f /profile-widget/profilewidget2.cpp | |
parent | bb76cb56d42e957e03cc705a9f8fd9f637733b5d (diff) | |
download | subsurface-674c20227b2ced3bfd9b3ab29060e7a2dd5829c3.tar.gz |
profile: call clearHandlers() in setPlanState()
This function, which removes the handlers from the profile, was called
in setAddState() but not in setPlanState(). In the latter case it was
called explicitly by the caller.
Move the call from the caller into the function. This allows us to
make clearHandlers() private in to the profile widget.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/profilewidget2.cpp')
-rw-r--r-- | profile-widget/profilewidget2.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index 3d6348bb5..342c60e90 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -1352,6 +1352,7 @@ void ProfileWidget2::setPlanState() if (currentState == PLAN) return; + clearHandlers(); setProfileState(); mouseFollowerHorizontal->setVisible(true); mouseFollowerVertical->setVisible(true); |