diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-02-23 20:11:44 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-04-02 13:53:23 -0700 |
commit | 457be51ff66fb7c3396863a27f4d93de1877e3b2 (patch) | |
tree | 54258acf689b8581a3b6b18ec2724e01eea8c438 /desktop-widgets/diveplanner.cpp | |
parent | a3d8191896c86fd05b96d38371f89f6d6f621789 (diff) | |
download | subsurface-457be51ff66fb7c3396863a27f4d93de1877e3b2.tar.gz |
profile: remove redundant replot() calls in key events
When moving "dive handlers" with the cursor keys, the
profile was replot twice:
- First the recalculation of the planner model was suspended.
- The "stop" was moved.
- This led to a replot by a signal from the planner model.
However, the old profile was shown, since the recalculation
was suspended.
- The recalculation was reenabled.
- The profile war replot, resulting now in the correct profile.
A classical case of bit rot.
Instead, don't suspend calculation in the first place. This
shows the correct profile on the first replot and the second
replot can be removed.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/diveplanner.cpp')
0 files changed, 0 insertions, 0 deletions