subsurface/mobile-widgets/qml
Jan Mulder 6193aef9ac mobile: fix crash on delete dive from divelist
This is a somewhat hacky commit. For a very long time, the delete
from the divelist on mobile crashed. That is, not always for anyone,
but for me almost consistently. This commit tries to solve it.

I found that trying to save the delete immediately after removing
data from the underlying model seemed to cause the crash. Hacking
around, I found that a simple beginResetModel/endResetModel between
the delete of the underlying model data and actual save is
sufficient to solve the crash.

The big question is, why does this all work? I suspect some of race
condition between deleting model data, and giving the QML engine
the opportunity to do its thing.

This is also related to issue #311, but that is not implemented
here.

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2018-01-10 20:34:16 +01:00
..
icons map-widget: move the widget and its resources to 'map-widget' 2017-11-05 14:48:56 -08:00
About.qml Get ready for 2018 2017-12-30 08:23:22 -08:00
CloudCredentials.qml QML UI: QtQuick.Layouts to 1.2 2017-11-19 12:20:43 -08:00
dive.jpg Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
DiveDetails.qml mobile: newer Kirigami SHA 2018-01-03 14:04:08 +01:00
DiveDetailsEdit.qml mobile: clear internal data when edit/add dive is finished 2017-12-15 09:03:24 -08:00
DiveDetailsView.qml QML UI: QtQuick.Layouts to 1.2 2017-11-19 12:20:43 -08:00
DiveList.qml mobile: fix crash on delete dive from divelist 2018-01-10 20:34:16 +01:00
DownloadedDiveDelegate.qml QML UI: QtQuick.Controls to version 2.2 2017-11-19 12:20:43 -08:00
DownloadFromDiveComputer.qml mobile: reset download screen in a sane state 2017-12-13 08:23:27 -08:00
GpsList.qml mobile: newer Kirigami SHA 2018-01-03 14:04:08 +01:00
HintsTextEdit.qml mobile: silence warnings in the app log 2018-01-03 14:04:08 +01:00
Log.qml QML UI: QtQuick.Layouts to 1.2 2017-11-19 12:20:43 -08:00
main.qml mobile: newer Kirigami SHA 2018-01-03 14:04:08 +01:00
mobile-resources.qrc mobile: newer Kirigami SHA 2018-01-03 14:04:08 +01:00
qtquickcontrols2.conf QML UI: Fully port dive edit to Kirigami2 2017-04-01 09:35:51 +02:00
Settings.qml QML UI: QtQuick.Layouts to 1.2 2017-11-19 12:20:43 -08:00
SsrfButton.qml QML UI: QtQuick to 2.6 2017-11-19 12:20:43 -08:00
SsrfCheckBox.qml QML UI: QtQuick to 2.6 2017-11-19 12:20:43 -08:00
SsrfSwitch.qml QML UI: QtQuick to 2.6 2017-11-19 12:20:43 -08:00
StartPage.qml QML UI: QtQuick.Layouts to 1.2 2017-11-19 12:20:43 -08:00
ThemeTest.qml QML UI: QtQuick.Layouts to 1.2 2017-11-19 12:20:43 -08:00