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

PICARD-3030: Fix crash when merging original values for multiple tags #2577

Merged
merged 3 commits into from
Feb 6, 2025

Conversation

phw
Copy link
Member

@phw phw commented Feb 6, 2025

Summary

  • This is a…
    • Bug fix
    • Feature addition
    • Refactoring
    • Minor / simple change (like a typo)
    • Other
  • Describe this change in 1-2 sentences:

Problem

This refactors the change from PICARD-3021 to address a crash when selecting more then one changed tag in the metadatabox and then open the context menu.

Solution

Avoid the crash by implementing merge originals similar to the existing use originals.

Also refactor use original values a bit to reduce code duplication and harmonize the implementation of both merge and use originals.

phw added 2 commits February 6, 2025 07:50
Avoid code duplication, harmonize implementaion of use original values
and merge original values.
@phw phw requested a review from zas February 6, 2025 07:09
zas
zas previously approved these changes Feb 6, 2025
Copy link
Collaborator

@zas zas left a comment

Choose a reason for hiding this comment

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

It looks good to me, perhaps just merge phw#23 which slightly reduce code redundancy.

Also I think we should rename useorigs and mergeorigs lists but I didn't come up with a good name.

Copy link
Collaborator

@zas zas left a comment

Choose a reason for hiding this comment

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

LGTM

@phw phw merged commit e8033cc into metabrainz:master Feb 6, 2025
48 checks passed
@phw phw deleted the PICARD-3030 branch February 6, 2025 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants