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

Dont Scroll up When Deleting Entry #6833

Conversation

hollow-owl
Copy link
Contributor

When deleting an entry it now selects the entry after the deleted section or the last entry if there isn't one after the selection.
Fixes #6304

Screenshots

Before deleting:
Screenshot_20210811_182503
After deleting:
Screenshot_20210811_182529

Testing strategy

Tested deleting a single entry and multiple entries at

  • the beginning
  • the end
  • the middle
  • right before the beginning
  • right before the end
  • all entries

Type of change

  • ✅ Bug fix (non-breaking change that fixes an issue)

@droidmonkey
Copy link
Member

Need to run make format

@droidmonkey
Copy link
Member

This code is not correct, it does not select the next entry correctly when sorted.

@droidmonkey droidmonkey force-pushed the feature/dontScrollUpWhenDeletingEntry branch from b84c59e to 92bd589 Compare August 21, 2021 22:42
* Fix keepassxreboot#6304 - Don't cause the list view to scroll to the top when deleting any entry in the list.
@droidmonkey droidmonkey force-pushed the feature/dontScrollUpWhenDeletingEntry branch from 92bd589 to 5cd5d70 Compare August 22, 2021 02:09
@droidmonkey
Copy link
Member

I fixed the problem and streamlined the code.

@droidmonkey droidmonkey added this to the v2.7.0 milestone Aug 22, 2021
@droidmonkey droidmonkey merged commit af9eb6d into keepassxreboot:develop Aug 22, 2021
@phoerious phoerious added pr: bugfix Pull request that fixes a bug and removed bug labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: bugfix Pull request that fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not scroll up after deleting entry
3 participants