diff --git a/source/backend/plugin/CarlaPlugin.cpp b/source/backend/plugin/CarlaPlugin.cpp index 1af74233c..5e97ab8c2 100644 --- a/source/backend/plugin/CarlaPlugin.cpp +++ b/source/backend/plugin/CarlaPlugin.cpp @@ -624,15 +624,12 @@ void CarlaPlugin::loadStateSave(const CarlaStateSave& stateSave) const char* const key(stateCustomData->key); - bool wantData = false; - if (getType() == PLUGIN_DSSI && (std::strcmp(key, "reloadprograms") == 0 || std::strcmp(key, "load") == 0 || std::strncmp(key, "patches", 7) == 0)) - wantData = true; - else if (usesMultiProgs && std::strcmp(key, "midiPrograms") == 0) - wantData = true; + continue; + if (usesMultiProgs && std::strcmp(key, "midiPrograms") == 0) + continue; - if (wantData) - setCustomData(stateCustomData->type, stateCustomData->key, stateCustomData->value, true); + setCustomData(stateCustomData->type, stateCustomData->key, stateCustomData->value, true); } // ---------------------------------------------------------------