looks like we do not listen to our own events, so move that elsewhere

This commit is contained in:
Alex Birch 2018-04-10 01:28:05 +01:00
parent d7b87fe84f
commit 649a1fcf36
No known key found for this signature in database
GPG Key ID: 305EB1F98D44ACBA

View File

@ -130,6 +130,7 @@ fluid_synth_t* FluidSynthModel::getSynth() {
void FluidSynthModel::onFileNameChanged(const string &absPath) { void FluidSynthModel::onFileNameChanged(const string &absPath) {
unloadAndLoadFont(absPath); unloadAndLoadFont(absPath);
sharesParams.setSoundFontPath(String(absPath));
eventListeners.call(&FluidSynthModel::Listener::fontChanged, this, absPath); eventListeners.call(&FluidSynthModel::Listener::fontChanged, this, absPath);
} }
@ -151,7 +152,6 @@ FluidSynthModel::Listener::~Listener() {
} }
void FluidSynthModel::Listener::fontChanged(FluidSynthModel * model, const string &absPath) { void FluidSynthModel::Listener::fontChanged(FluidSynthModel * model, const string &absPath) {
model->sharesParams.setSoundFontPath(String(absPath));
} }
//============================================================================== //==============================================================================