From a41742ab4d83e942002b97b48e1da8238d40f9ff Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 12 Mar 2022 13:10:29 +0100 Subject: [PATCH] profile: don't change background color in "edit mode" From a user's perspective, the edit mode is not a different application mode anymore. Therefore, don't change the background of the profile. Signed-off-by: Berthold Stoeger --- profile-widget/profilewidget2.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index ba17e4b23..c480f3ed7 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -446,9 +446,7 @@ void ProfileWidget2::setEditState(const dive *d, int dc) connectPlannerModel(); - /* show the same stuff that the profile shows. */ - currentState = EDIT; /* enable the add state. */ - setBackgroundBrush(QColor("#A7DCFF")); + currentState = EDIT; pointsReset(); repositionDiveHandlers(); @@ -466,8 +464,7 @@ void ProfileWidget2::setPlanState(const dive *d, int dc) connectPlannerModel(); - /* show the same stuff that the profile shows. */ - currentState = PLAN; /* enable the add state. */ + currentState = PLAN; setBackgroundBrush(QColor("#D7E3EF")); pointsReset();