Skip to content

Prevent Sf2Intrument from trying to load non-existing file on deserialization#8432

Open
Itreza2 wants to merge 2 commits into
LMMS:masterfrom
Itreza2:sf2-clone-name
Open

Prevent Sf2Intrument from trying to load non-existing file on deserialization#8432
Itreza2 wants to merge 2 commits into
LMMS:masterfrom
Itreza2:sf2-clone-name

Conversation

@Itreza2

@Itreza2 Itreza2 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

fixes #8430

When deserializing, in Sf2Instrument::loadSettings, the sf2 instrument is trying to load its source .sf2 file, even if there no such file was loaded when the instrument was serialized. This is what is causing #8430.

This PR is a adding a simple check in Sf2Instrument::loadSettings:
If the "src" attribute of the serialized object is an empty string, the method Sf2Instrument::openFile isn't called.

@Itreza2 Itreza2 changed the title Prevent Sf2Intrument from trying to load non-existing file on deseria… Prevent Sf2Intrument from trying to load non-existing file on deserialization Jun 11, 2026
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.

Clones of a sf2 track with no bank loaded have an empty name

1 participant