diff options
-rw-r--r-- | src/drumgizmo.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc index e8ced6a..1fa41a9 100644 --- a/src/drumgizmo.cc +++ b/src/drumgizmo.cc @@ -442,7 +442,8 @@ bool DrumGizmo::setConfigString(std::string cfg) str2float(p.value("velocity_randomiser_weight")); } - if(drumkitfile() != p.value("drumkitfile")) { + std::string newkit = p.value("drumkitfile"); + if(newkit != "" && drumkitfile() != newkit) { if(!loadkit(p.values["drumkitfile"])) return false; init(true); } |