mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Desktop: read tab-items from current_dive, not displayed_dive
The whole edit logic moved from displayed_dive to current_dive and it became more and more tedious to keep these in sync. Therefore, simply always display current_dive. The only exceptions are the equipment tab and the planner, as these are not yet integrated in the undo system. Once this is done, displayed_dive can be removed. Moreover, remove the clear parameter from updateDiveInfo(). Instead simply clear of there is no current_dive set. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
bfb6a55707
commit
837ab6c90b
5 changed files with 44 additions and 47 deletions
|
@ -1696,7 +1696,7 @@ void ProfileWidget2::splitDive()
|
|||
duration_t time;
|
||||
time.seconds = lrint(timeAxis->valueAt(scenePos));
|
||||
Command::splitDives(d, time);
|
||||
emit updateDiveInfo(false);
|
||||
emit updateDiveInfo();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -1742,7 +1742,7 @@ void ProfileWidget2::changeGas()
|
|||
|
||||
// FIXME - this no longer gets written to the dive list - so we need to enableEdition() here
|
||||
|
||||
emit updateDiveInfo(false);
|
||||
emit updateDiveInfo();
|
||||
mark_divelist_changed(true);
|
||||
replot();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue