mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-24 17:03:24 -04:00
Fix AFP reverse mode desync on new sample load (#8158)
Previously, loading a new sample in an AFP instance with reverse enabled would desync the button from the model, such that the button would indicate the sample was reversed despite the new sample not actually being reversed. This commit fixes this behavior so that samples loaded into an AFP instance with reverse enabled are actually reversed.
This commit is contained in:
committed by
GitHub
parent
dd9afe7c23
commit
f0cb32ff08
@@ -320,6 +320,7 @@ void AudioFileProcessor::setAudioFile(const QString& _audio_file, bool _rename)
|
||||
|
||||
m_sample = Sample(gui::SampleLoader::createBufferFromFile(_audio_file));
|
||||
loopPointChanged();
|
||||
reverseModelChanged();
|
||||
emit sampleUpdated();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user