summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-08-10 17:41:35 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-08-10 09:55:11 -0700
commit0cce3ef2a84fb4aca2726893f5699526ca8fb837 (patch)
treeee4b32ebde5d3a3ac4fb51272ae014502feb3bbd /mobile-widgets/qmlmanager.h
parentf18ea2e3b62f43358ea3f7f5b5ba74a351f7b088 (diff)
downloadsubsurface-0cce3ef2a84fb4aca2726893f5699526ca8fb837.tar.gz
Mobile: update dive site model if dive sites are created
Always keep the dive site model up to date when adding dive sites. This hopefully avoids creation of invalid indexes followed by crashes. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r--mobile-widgets/qmlmanager.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h
index ff09661c6..70fd59f2b 100644
--- a/mobile-widgets/qmlmanager.h
+++ b/mobile-widgets/qmlmanager.h
@@ -236,6 +236,8 @@ private:
QString m_progressMessage;
bool m_btEnabled;
void updateAllGlobalLists();
+ void updateSiteList();
+ void setupDivesite(struct dive *d, struct dive_site *ds, double lat, double lon, const char *locationtext);
QString m_pluggedInDeviceName;
bool m_showNonDiveComputers;
struct dive *m_copyPasteDive = NULL;