diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2019-09-29 15:30:59 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2019-09-29 15:33:41 +0200 |
commit | 4a91e55db588efa629f433f99287921cfabcbc20 (patch) | |
tree | 5ffffec7ee1b3f0b33d4467e3ff1ecd05e022bf9 /src/drumkitloader.cc | |
parent | 6f88fd56fae4317306c4134f5854fe1b5379d075 (diff) |
Clear metadata on drumkit load to get rid of dangling metada from a previously loaded kit on current kit load error.
Diffstat (limited to 'src/drumkitloader.cc')
-rw-r--r-- | src/drumkitloader.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drumkitloader.cc b/src/drumkitloader.cc index d9f65f0..91e3dd8 100644 --- a/src/drumkitloader.cc +++ b/src/drumkitloader.cc @@ -130,6 +130,11 @@ bool DrumKitLoader::loadkit(const std::string& file) // Delete all Channels, Instruments, Samples and AudioFiles. kit.clear(); + // Clear metadata from previously loaded drumkit + settings.drumkit_name.store(""); + settings.drumkit_description.store(""); + settings.drumkit_version.store(""); + settings.drumkit_samplerate.store(44100); settings.load_status_text.store(""); settings.drumkit_load_status.store(LoadStatus::Loading); |