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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2022-03-12 13:10:29 +01:00
parent fd35fbb349
commit a41742ab4d

View file

@ -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();