subsurface/desktop-widgets
Berthold Stoeger 3debd92734 Undo: properly reference-count dive sites
Recently, the undo code was changed to consider dive sites.
The undo code uses a DiveToAdd structure, which was extended
by the dive site to which the dive should be added.

The split and merge commands were not adapted and therefore
the dive counts of the dive sites were wrong after split
and merge.

Fix this by properly setting the dive site field and removing
the reference in the dive structure (in the split case, the merge
case already cleared the reference).

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2019-05-17 10:36:23 -07:00
..
css
preferences
statistics
tab-widgets
about.cpp
about.h
about.ui
btdeviceselectiondialog.cpp
btdeviceselectiondialog.h
btdeviceselectiondialog.ui
CMakeLists.txt
command.cpp
command.h
command_base.cpp
command_base.h
command_divelist.cpp Undo: properly reference-count dive sites 2019-05-17 10:36:23 -07:00
command_divelist.h
command_divesite.cpp
command_divesite.h
command_edit.cpp
command_edit.h
command_edit_trip.cpp
command_edit_trip.h
command_private.cpp
command_private.h
configuredivecomputerdialog.cpp
configuredivecomputerdialog.h
configuredivecomputerdialog.ui
divecomponentselection.ui
divecomputermanagementdialog.cpp
divecomputermanagementdialog.h
divecomputermanagementdialog.ui
divelistview.cpp
divelistview.h
divelogexportdialog.cpp
divelogexportdialog.h
divelogexportdialog.ui
divelogimportdialog.cpp
divelogimportdialog.h
divelogimportdialog.ui
divepicturewidget.cpp
divepicturewidget.h
diveplanner.cpp
diveplanner.h
diveplanner.ui
diveshareexportdialog.cpp
diveshareexportdialog.h
diveshareexportdialog.ui
divesiteimportdialog.cpp
divesiteimportdialog.h
divesiteimportdialog.ui
downloadfromdivecomputer.cpp
downloadfromdivecomputer.h
downloadfromdivecomputer.ui
filterwidget2.cpp
filterwidget2.h
filterwidget2.ui
findmovedimagesdialog.cpp
findmovedimagesdialog.h
findmovedimagesdialog.ui
groupedlineedit.cpp
groupedlineedit.h
kmessagewidget.cpp
kmessagewidget.h
listfilter.ui
locationinformation.cpp
locationinformation.h
locationinformation.ui
mainwindow.cpp
mainwindow.h
mainwindow.ui
mapwidget.cpp
mapwidget.h
modeldelegates.cpp
modeldelegates.h
notificationwidget.cpp
notificationwidget.h
plannerDetails.ui
plannerSettings.ui
printdialog.cpp
printdialog.h
printer.cpp
printer.h
printoptions.cpp
printoptions.h
printoptions.ui
qtwaitingspinner.cpp
qtwaitingspinner.h
renumber.ui
searchbar.ui
setpoint.ui
shiftimagetimes.ui
shifttimes.ui
simplewidgets.cpp
simplewidgets.h
starwidget.cpp
starwidget.h
subsurfacewebservices.cpp
subsurfacewebservices.h
tableview.cpp
tableview.h
tableview.ui
tagwidget.cpp
tagwidget.h
templateedit.cpp
templateedit.h
templateedit.ui
templatelayout.cpp
templatelayout.h
textedit.cpp
textedit.h
updatemanager.cpp
updatemanager.h
urldialog.ui
usermanual.cpp
usermanual.h
usersurvey.cpp
usersurvey.h
usersurvey.ui
webservices.ui