From 674c20227b2ced3bfd9b3ab29060e7a2dd5829c3 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 25 Nov 2020 07:40:09 +0100 Subject: 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 --- desktop-widgets/diveplanner.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'desktop-widgets') diff --git a/desktop-widgets/diveplanner.cpp b/desktop-widgets/diveplanner.cpp index e4f572498..350371921 100644 --- a/desktop-widgets/diveplanner.cpp +++ b/desktop-widgets/diveplanner.cpp @@ -663,7 +663,6 @@ void PlannerWidgets::replanDive() DivePlannerPointsModel::instance()->setPlanMode(DivePlannerPointsModel::PLAN); MainWindow::instance()->graphics->setPlanState(); - MainWindow::instance()->graphics->clearHandlers(); plannerWidget.setReplanButton(true); plannerWidget.setupStartTime(timestampToDateTime(current_dive->when)); -- cgit v1.2.3-70-g09d2