subsurface/desktop-widgets
Berthold Stoeger 9310d72943 models: update divesite-model when clearing/updating dive model
When the dive list is cleared or updated, the entries in the
divesite-model become stale and therefore the divesite-model
(with the actual name LocationInformationModel) also must be
updated. This was done manually in some parts of the code and
forgotten in others. Therefore, do it directly in the clear()
and reset() function of the dive list-model.

This might be a bit of a layering violation: why should one
model call into another if they are not in parent/child
relationship? However, this seems easier than introducing
a global "reset dives" function that coordinates the models.

Moreover, it does not appear 100% safe: if the clearing of
the divesite model causes accesses to the divelist-model,
they happen in the midst of a model reset and we had horrible
bugs with that kind of things. However, I don't think that
should happen.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2020-03-18 13:27:16 -07:00
..
css
preferences core/settings:: remove string functions for units 2020-01-20 09:55:26 -08:00
statistics
tab-widgets models: update divesite-model when clearing/updating dive model 2020-03-18 13:27:16 -07:00
about.cpp
about.h
about.ui
btdeviceselectiondialog.cpp code cleanup: replace deprecated setBackgroundColor() method 2020-01-10 02:37:03 +09:00
btdeviceselectiondialog.h
btdeviceselectiondialog.ui
CMakeLists.txt Desktop: Import dive coordinates directly from GPS 2020-01-24 09:51:02 -08:00
configuredivecomputerdialog.cpp
configuredivecomputerdialog.h
configuredivecomputerdialog.ui
divecomponentselection.ui
divecomputermanagementdialog.cpp
divecomputermanagementdialog.h
divecomputermanagementdialog.ui
divelistview.cpp Grammar: replaces 'indexes' by 'indices' 2020-03-11 08:26:30 -07:00
divelistview.h Grammar: replaces 'indexes' by 'indices' 2020-03-11 08:26:30 -07:00
divelogexportdialog.cpp Cleanup: remove exportFunc class 2020-02-09 12:13:18 -08:00
divelogexportdialog.h desktop-widgets: move export functions to shared class 2019-12-03 21:30:39 -08:00
divelogexportdialog.ui Add export option to export dive sites. 2019-04-13 08:18:32 -07:00
divelogimportdialog.cpp Grammar: replaces 'indexes' by 'indices' 2020-03-11 08:26:30 -07:00
divelogimportdialog.h
divelogimportdialog.ui
divepicturewidget.cpp Cleanup: remove unneeded QtConcurrent includes 2020-02-16 16:52:12 -08:00
divepicturewidget.h
diveplanner.cpp Planner: don't filter cylinders 2020-02-11 20:37:09 -08:00
diveplanner.h code cleanup: remove unused QSignalMapper 2020-01-10 02:37:03 +09:00
diveplanner.ui
diveshareexportdialog.cpp desktop-widgets: diveDiveShareExportDialog add signal handling 2019-12-11 11:08:51 -05:00
diveshareexportdialog.h desktop-widgets: diveDiveShareExportDialog add signal handling 2019-12-11 11:08:51 -05:00
diveshareexportdialog.ui
divesiteimportdialog.cpp code cleanup: add empty table structures 2020-01-10 02:37:03 +09:00
divesiteimportdialog.h Create DivesiteImportDialog to select sites to import 2019-05-06 10:48:44 +02:00
divesiteimportdialog.ui Create DivesiteImportDialog to select sites to import 2019-05-06 10:48:44 +02:00
downloadfromdivecomputer.cpp mobile: unify download code on mobile and desktop 2020-03-10 09:25:57 -07:00
downloadfromdivecomputer.h Import: Make DownloadThread a subobject of DiveImportedModel 2019-10-02 08:04:49 -07:00
downloadfromdivecomputer.ui
filterwidget2.cpp filter: on show focus on fulltext-field 2020-03-01 10:21:44 -08:00
filterwidget2.h Filter: split out filter from model 2019-11-19 21:13:40 -08:00
filterwidget2.ui filter: fix tab-order of filter widget 2020-03-01 10:21:44 -08:00
findmovedimagesdialog.cpp
findmovedimagesdialog.h
findmovedimagesdialog.ui
groupedlineedit.cpp
groupedlineedit.h
importgps.cpp core: move GPX parsing into core 2020-01-24 09:51:02 -08:00
importgps.h core: move GPX parsing into core 2020-01-24 09:51:02 -08:00
importgps.ui desktop UI: fix typo in GPS import UI 2020-03-05 09:35:43 -08:00
kmessagewidget.cpp
kmessagewidget.h
listfilter.ui
locationinformation.cpp Dive site: don't save invalid GPS coordinates 2020-02-06 08:50:22 -08:00
locationinformation.h Dive site: give visual clue for invalid coordinates 2020-02-06 08:50:22 -08:00
locationinformation.ui Desktop: Import dive coordinates directly from GPS 2020-01-24 09:51:02 -08:00
mainwindow.cpp models: update divesite-model when clearing/updating dive model 2020-03-18 13:27:16 -07:00
mainwindow.h debug: try to capture changes that don't invalidate git cache 2020-03-07 18:47:34 -08:00
mainwindow.ui Reword configure dive computer 2019-06-03 19:55:19 +02:00
mapwidget.cpp Refactoring: move undo commands to top level 2019-11-14 21:02:07 +01:00
mapwidget.h Cleanup: lower-case filenames in core/subsurface-qt/ 2020-02-04 02:16:46 +01:00
modeldelegates.cpp crash fix: Don't cast to CylindersModel or CylindersModelFiltered 2020-02-28 08:12:26 -08:00
modeldelegates.h Desktop: refactor WSInfoDelegate logic 2019-12-05 10:14:25 -08:00
notificationwidget.cpp
notificationwidget.h
plannerDetails.ui
plannerSettings.ui Planner: Add option to treat O2 as narcotic 2019-10-31 00:30:38 -07:00
printdialog.cpp Add the ability to export print template as html 2019-09-11 17:21:50 +01:00
printdialog.h Add the ability to export print template as html 2019-09-11 17:21:50 +01:00
printer.cpp Add the ability to export print template as html 2019-09-11 17:21:50 +01:00
printer.h Add the ability to export print template as html 2019-09-11 17:21:50 +01:00
printoptions.cpp
printoptions.h
printoptions.ui
qtwaitingspinner.cpp
qtwaitingspinner.h
renumber.ui
searchbar.ui
setpoint.ui
shiftimagetimes.ui
shifttimes.ui
simplewidgets.cpp Cleanup: use getDiveSelection() for shifting time 2020-03-06 10:00:13 +01:00
simplewidgets.h Cleanup: remove const bool parameters and return types 2020-02-09 12:13:18 -08:00
starwidget.cpp code cleanup: replace deprecated member function QColor::dark() 2020-01-10 02:37:03 +09:00
starwidget.h
subsurfacewebservices.cpp code cleanup: add empty table structures 2020-01-10 02:37:03 +09:00
subsurfacewebservices.h desktop-widgets: divelogsDE: integrate shared backend 2019-12-11 12:36:43 -05:00
tableview.cpp code cleanup: QFontMetrics::width() is deprecated 2020-01-10 02:37:03 +09:00
tableview.h Desktop: don't connect to remove() slot of model from TableModel 2019-12-05 10:14:25 -08:00
tableview.ui
tagwidget.cpp Desktop: remove edit-check in tag-widget completer 2019-04-14 03:38:22 +12:00
tagwidget.h Undo: implement undo of tag editing 2019-04-12 18:19:07 +03:00
templateedit.cpp
templateedit.h
templateedit.ui
templatelayout.cpp Selection: move selection functions from divelist.c to selection.c 2019-12-04 13:00:23 +01:00
templatelayout.h Cleanup: lower-case filenames in core/subsurface-qt/ 2020-02-04 02:16:46 +01:00
textedit.cpp
textedit.h
updatemanager.cpp
updatemanager.h
urldialog.ui
usermanual.cpp Coding style: remove Java-style function definition 2019-04-12 18:19:07 +03:00
usermanual.h
usersurvey.cpp
usersurvey.h
usersurvey.ui
webservices.ui