diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-10-11 07:53:21 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-11 16:25:02 -0700 |
commit | 76e5c5ac671fdeb29cf667d478a27757054d67cb (patch) | |
tree | 2f5bfeb67a63ffc10019bf8a76fbd3540ae23ff4 /desktop-widgets/locationinformation.cpp | |
parent | b426a7937edcf87ae07a20b542cbf578cf92d86a (diff) | |
download | subsurface-76e5c5ac671fdeb29cf667d478a27757054d67cb.tar.gz |
Dive site: remove access to displayed dive site from LocationFilterDelegate
When editing a dive, in the location box a list of dive sites is
shown containing the distance to the current dive site. This was
implemented via the global displayed_dive_site object, which is
set when switching between dives. This seems like an unnecessary
indirection. Instead, use the current_dive macro.
This is part of a series to refactor dive-site handling to use
pointers instead of UUIDs and a general push to reduce global state.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/locationinformation.cpp')
0 files changed, 0 insertions, 0 deletions