commit 00642a44e87691988191d3c11603da6d6a2fd540
parent f30d19f3b96e4fbaaaa0df643d1bb38eab00e683
Author: falkTX <falktx@gmail.com>
Date: Tue, 15 Apr 2014 13:32:52 +0000
same fix for vst
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/distrho/src/DistrhoPluginVST.cpp b/distrho/src/DistrhoPluginVST.cpp
@@ -752,6 +752,10 @@ private:
{
fPlugin.setState(newKey, newValue);
+ // check if we want to save this key
+ if (! fPlugin.wantsStateKey(key))
+ return;
+
// check if key already exists
for (auto it = fStateMap.begin(), end = fStateMap.end(); it != end; ++it)
{
@@ -764,7 +768,7 @@ private:
}
}
- // add a new one then
+ // nope, add a new one then
d_string d_key(newKey);
fStateMap[d_key] = newValue;
}