From b0e905e00d2f99822998a6ef4860d6ce48948c3b Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 30 Mar 2013 17:19:44 +0100 Subject: Don't send kitfile to parser if kitfile is the empty string. --- src/drumgizmo.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.3