summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-03-30 17:19:44 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-03-30 17:19:44 +0100
commitb0e905e00d2f99822998a6ef4860d6ce48948c3b (patch)
tree90ca83301bfa75de229fea7bd503ae031306d214 /src
parent5ea242d6b17e70f7d05898a89d112fdfa7222185 (diff)
Don't send kitfile to parser if kitfile is the empty string.
Diffstat (limited to 'src')
-rw-r--r--src/drumgizmo.cc3
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);
}