aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/TopBar.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-04 17:48:34 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-04 17:55:37 -0800
commit3bfa8de2f7022370f6ab497a378be51018b49f35 (patch)
tree6d8373300f8a3efa4343916caaad500d6a7d9501 /qt-mobile/qml/TopBar.qml
parent72ce77a5ee5127c374a56d3de741b808432b6ce5 (diff)
downloadsubsurface-3bfa8de2f7022370f6ab497a378be51018b49f35.tar.gz
Cloud storage: fix potential crash when avoiding reloading dive list
If we loaded the dive list from cache and then try to figure out if the remote repository had anything different, we were being super stupid if the SHA was identical... we had already cleared the dive list by the time we decided that we didn't need to load things. Granted, the model was still populated (oops), but the backend data structure was cleared and accesses to it (e.g., when drawing the profile) would cause things to crash. The helper function duplicates some code, but trying to not duplicate the code made things even harder to read. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/TopBar.qml')
0 files changed, 0 insertions, 0 deletions