diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-04-25 22:35:41 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-04-26 08:24:28 -0700 |
commit | c34f0b88a255401a5603413e59656cf4fe4967ca (patch) | |
tree | e70245463c8aede474801da52f5f50c354f814ad /desktop-widgets | |
parent | 78f4d7b2b921f4c1f1f313c5d3b1ed393144a9da (diff) | |
download | subsurface-c34f0b88a255401a5603413e59656cf4fe4967ca.tar.gz |
profile: move checking for DiveTextItem into its own function
When creating the context menu, a special menu is created for
the dive computer name.
This was checked in a loop, that set a flag and exited early.
This can all be simplified by moving the loop into its own
function. No more flag, less indentation. Overall better.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets')
0 files changed, 0 insertions, 0 deletions