diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-30 17:19:44 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-30 17:19:44 +0100 |
commit | b0e905e00d2f99822998a6ef4860d6ce48948c3b (patch) | |
tree | 90ca83301bfa75de229fea7bd503ae031306d214 /src | |
parent | 5ea242d6b17e70f7d05898a89d112fdfa7222185 (diff) |
Don't send kitfile to parser if kitfile is the empty string.
Diffstat (limited to 'src')
-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); } |