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

Fixes bug with cloning Automation Tracks #5732

Merged
merged 1 commit into from
Nov 14, 2020

Conversation

IanCaio
Copy link
Contributor

@IanCaio IanCaio commented Oct 25, 2020

Fixes bug from issue #5595. When cloning an automation track, the IDs from the recently created AutomationPatterns weren't being resolved, causing them to show as disconnected automations.

This PR fixes the issue by adding a call to AutomationPattern::resolveAllIDs() on the Track::clone() method. It also fixes the code style on that method.

	Fixes bug from issue LMMS#5595. When cloning an automation track, the IDs from the recently created AutomationPatterns weren't being resolved, causing them to show as disconnected automations.
	This PR fixes the issue by adding a call to AutomationPattern::resolveAllIDs() on the Track::clone() method. It also fixes the code style on that method.
@LmmsBot
Copy link

LmmsBot commented Oct 25, 2020

🤖 Hey, I'm @LmmsBot from github.com/lmms/bot and I made downloads for this pull request, click me to make them magically appear! 🎩

Linux

Windows

🤖
{"platform_name_to_artifacts": {"Linux": [{"artifact": {"title": {"title": "(AppImage)", "platform_name": "Linux"}, "link": {"link": "https://9912-15778896-gh.circle-artifacts.com/0/lmms-1.2.3-739%2Bg0efebe9-linux-x86_64.AppImage"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/9912?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}], "Windows": [{"artifact": {"title": {"title": "32-bit", "platform_name": "Windows"}, "link": {"link": "https://9913-15778896-gh.circle-artifacts.com/0/lmms-1.2.3-739%2Bg0efebe948-mingw-win32.exe"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/9913?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}, {"artifact": {"title": {"title": "64-bit", "platform_name": "Windows"}, "link": {"link": "https://9914-15778896-gh.circle-artifacts.com/0/lmms-1.2.3-739%2Bg0efebe948-mingw-win64.exe"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/9914?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}, {"artifact": {"title": {"title": "32-bit", "platform_name": "Windows"}, "link": {"link": "https://ci.appveyor.com/api/buildjobs/1g8r3k0vky5kw622/artifacts/build/lmms-1.2.2-msvc2017-win32.exe"}}, "build_link": "https://ci.appveyor.com/project/Lukas-W/lmms/builds/35942135"}, {"artifact": {"title": {"title": "64-bit", "platform_name": "Windows"}, "link": {"link": "https://ci.appveyor.com/api/buildjobs/0822iiwkuldk4p2u/artifacts/build/lmms-1.2.2-msvc2017-win64.exe"}}, "build_link": "https://ci.appveyor.com/project/Lukas-W/lmms/builds/35942135"}]}, "commit_sha": "5864aea3d325238e2fcc3c076a3f6d81454a4015"}

@superpaik
Copy link
Contributor

It works ok.
When track is cloned, values are copied ok. XML (mmp file) is correctly build (id and values)

@IanCaio
Copy link
Contributor Author

IanCaio commented Oct 27, 2020

Awesome! Thanks once again for testing @superpaik !
The code review on this one should be an easy one, something short for a change 😆

Copy link
Member

@ryuukumar ryuukumar left a comment

Choose a reason for hiding this comment

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

Code LGTM to me.

@IanCaio
Copy link
Contributor Author

IanCaio commented Nov 14, 2020

If there are no objections I'll merge this one tomorrow. It's a very small fix and there are 2 approvals.

@IanCaio IanCaio merged commit 28a3944 into LMMS:master Nov 14, 2020
sdasda7777 pushed a commit to sdasda7777/lmms that referenced this pull request Jun 28, 2022
	Fixes bug from issue LMMS#5595. When cloning an automation track, the IDs from the recently created AutomationPatterns weren't being resolved, causing them to show as disconnected automations.
	This PR fixes the issue by adding a call to AutomationPattern::resolveAllIDs() on the Track::clone() method. It also fixes the code style on that method.
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.

5 participants