From 4a91e55db588efa629f433f99287921cfabcbc20 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 29 Sep 2019 15:30:59 +0200 Subject: Clear metadata on drumkit load to get rid of dangling metada from a previously loaded kit on current kit load error. --- src/drumkitloader.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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); -- cgit v1.2.3