diff options
author | 2021-01-28 14:24:38 +0100 | |
---|---|---|
committer | 2021-04-02 13:53:23 -0700 | |
commit | 2789bb05b133a7cf54081d58d4f5c51c8977e951 (patch) | |
tree | 48bb6337c24dcd87bd3d8fcf0ac545f544d11744 /desktop-widgets/tab-widgets | |
parent | 36f0ba9abed595885edf52c8db848da71fa30b11 (diff) | |
download | subsurface-2789bb05b133a7cf54081d58d4f5c51c8977e951.tar.gz |
profile: display arbitrary dive
So far the profile operated on the global displayed_dive. Instead,
take the dive to be displayed as a parameter to the plotDive()
functions.
This is necessary if we want to have multiple concurrent
profile objects. Think for example for printing or for mobile
where multiple dive objects are active at the same time.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/tab-widgets')
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index 0170cdb40..78784de46 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -541,11 +541,6 @@ void MainTab::rejectChanges() // no harm done to call cancelPlan even if we were not PLAN mode... DivePlannerPointsModel::instance()->cancelPlan(); - // now make sure that the correct dive is displayed - if (current_dive) - copy_dive(current_dive, &displayed_dive); - else - clear_dive(&displayed_dive); updateDiveInfo(); // show the profile and dive info |