subsurface/core/subsurface-qt
Berthold Stoeger cddd5942f8 Undo: update dive list after edit command
The dive list was not updated automatically when an edit command was
executed. There was already a signal to do that, viz. divesChanged().
But that signal worked by-trip and didn't have a dive-field specifier.

The edit-commands used the divesEdited() signal that isn't by-trip
but has a dive-field specifier.

Unify these two signals to be by-trip and with dive-field specifier.
This needs common code to generate the by-trip list that is moved to
a command_private.h header.

Since there might now be multiple signals (one per trip) actually
check in the main-tab whether the current trip is affected to
avoid multiple update of fields. This has the positive(?) effect
of not doing any update if the current dive isn't changed.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2019-04-12 18:19:07 +03:00
..
CylinderObjectHelper.cpp Cleanup: fold core/helpers.h into core/qthelper.h 2018-06-04 08:50:10 -07:00
CylinderObjectHelper.h Add SPDX header to remaining core files 2017-04-29 13:32:55 -07:00
DiveListNotifier.cpp Dive list: implement proper Qt-model semantics for DiveTripModel 2018-10-11 16:22:27 -07:00
DiveListNotifier.h Undo: update dive list after edit command 2019-04-12 18:19:07 +03:00
DiveObjectHelper.cpp Dive sites: prepare for dive site ref-counting 2019-04-12 18:19:07 +03:00
DiveObjectHelper.h Mobile: don't format trip heading for all dives 2018-11-23 13:22:24 -08:00