Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

divelist: when removing/adding a dive unregister/register fulltext #2750

Merged
merged 1 commit into from Apr 13, 2020

Conversation

bstoeger
Copy link
Collaborator

@bstoeger bstoeger commented Apr 13, 2020

This fixes a crash: when the undo commands removed a dive from
the list, the fulltext cache was not cleared. If now the divelist
is reset and then the undo-command deleted, deletion of the owned
dive tries to remove it's fulltext cache, which doesn't exist
anymore.

For reasons of symmetry, when readding the dive, its fulltext
has to be registered.

Signed-off-by: Berthold Stoeger bstoeger@mail.tuwien.ac.at

Describe the pull request:

  • Bug fix
  • Functional change
  • New feature
  • Code cleanup
  • Build system change
  • Documentation change
  • Language translation

Pull request long description:

Properly unregister fulltext cache when removing dive from the core. This hopefully fixes a crash reported on mobile.

This fixes a crash: when the undo commands removed a dive from
the list, the fulltext cache was not cleared. If now the divelist
is reset and then the undo-command deleted, deletion of the owned
dive tries to remove it's fulltext cache, which doesn't exist
anymore.

For reasons of symmetry, when readding the dive, its fulltext
has to be registered.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
@janmulder
Copy link
Collaborator

Tested this PR, including PRs #2747 and #2746, and I cannot make things crash any more (with was rather easy before).

Copy link
Collaborator

@dirkhh dirkhh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable. Thanks for testing @janmulder

@dirkhh dirkhh merged commit 103951b into subsurface:master Apr 13, 2020
@bstoeger bstoeger deleted the fulltext2 branch April 13, 2020 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants