diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-02-21 19:10:14 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-04-02 13:53:23 -0700 |
commit | ed8ad9ac807624b9fb87076e8a41cc2e47a5b076 (patch) | |
tree | 5ec74f45c8ff0979370649e03d3f6e4c850c6bb9 /desktop-widgets/printoptions.cpp | |
parent | b4c307c775c6f1cd306094cb89ee53378b71c81e (diff) | |
download | subsurface-ed8ad9ac807624b9fb87076e8a41cc2e47a5b076.tar.gz |
desktop: query DivePlannerPointsModel for planner state
MainTab::updateDiveInfo() is not executed when in the planner.
To decide whether the application is in the planner state,
it queried the profile. Instead, query the DivePlannerPointsModel.
Currently, there is no autoritative carrier of that flag.
However, the MainTab has a dependency on DivePlannerPointsModel
anyway, and therefore this removes a dependency on the
profile. This brings us closer to a state where we can have
multiple profiles.
Ultimately, it is hoped that the whole check can be removed
at this place, making the point moot.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/printoptions.cpp')
0 files changed, 0 insertions, 0 deletions