subsurface/mobile-widgets
Dirk Hohndel 31a979371e mobile/hackery: try to prevent QLM race condition
Apparently in some cases there is a race condition where the action to
delete a dive is still running while a corresponding QML object (but not
that action itself) is being deleted, likely because the action is
becoming invisible once the dive is actually deleted. I'm speculating
that this may be somewhere inside the delegates for the repeater showing
the actions in the context drawer.

This commit is a bit of a convoluted hack. We create a property to hold
the dive id to be deleted and then call a function to delete that dive
via a timer. This of course creates a blatant race condition in itself -
but the user is extremely unlikely to be able to use the context menu to
delete two different dives within 100ms. The code tries to keep that
race window as small as possible.

There has got to be a better way to do this.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2021-01-20 08:35:07 -08:00
..
3rdparty mobile/UI: correctly update title bar font size 2021-01-19 12:42:48 -08:00
qml mobile/hackery: try to prevent QLM race condition 2021-01-20 08:35:07 -08:00
CMakeLists.txt statistics: add a skeleton StatsManager class 2021-01-10 15:16:52 -08:00
qmlinterface.cpp mobile/summary: remove dive summary calculation 2020-02-08 10:29:36 -08:00
qmlinterface.h mobile/summary: remove dive summary calculation 2020-02-08 10:29:36 -08:00
qmlmanager.cpp mobile/UI: add button to change notification 2021-01-19 12:42:47 -08:00
qmlmanager.h mobile/UI: show notification with changes made after save 2021-01-19 12:42:47 -08:00
statsmanager.cpp mobile/statistics: make charts model available to UI 2021-01-13 11:39:36 -08:00
statsmanager.h mobile/statistics: make charts model available to UI 2021-01-13 11:39:36 -08:00
themeinterface.cpp mobile/UI: remember the system default font size 2021-01-19 12:35:29 -08:00
themeinterface.h mobile/UI: remember the system default font size 2021-01-19 12:35:29 -08:00