diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-09 21:18:37 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-10 15:57:39 -0800 |
commit | 235146a95f5d79c54cf3b68b490c1cb0fb146b5f (patch) | |
tree | 71bd7b0ad845a52cd579302da423154bf6e4fe36 /commands/command_pictures.cpp | |
parent | 88c6ce988dfc1b5ad40eb9c425d705c8ac136570 (diff) | |
download | subsurface-235146a95f5d79c54cf3b68b490c1cb0fb146b5f.tar.gz |
profile: pass dive to DiveHandler
The DiveHandler shows a context menu where a cylinder can be
chosen. This indirectly accesses the global displayed_dive
variable.
Remove this in a step to make the profile reentrant.
The code was quite ominous: instead of simply generating the
list of cylinders, a global model was reset and then accessed
with Qt's cumbersome model/view API. All this trampling over
global state can be removed by simply making the function
that generates the list globally accessible.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'commands/command_pictures.cpp')
0 files changed, 0 insertions, 0 deletions