From 649a1fcf363bf3623785097b85a982ccf5cd259c Mon Sep 17 00:00:00 2001 From: Alex Birch Date: Tue, 10 Apr 2018 01:28:05 +0100 Subject: [PATCH] looks like we do not listen to our own events, so move that elsewhere --- Source/FluidSynthModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/FluidSynthModel.cpp b/Source/FluidSynthModel.cpp index dae1db8..3df1cfa 100644 --- a/Source/FluidSynthModel.cpp +++ b/Source/FluidSynthModel.cpp @@ -130,6 +130,7 @@ fluid_synth_t* FluidSynthModel::getSynth() { void FluidSynthModel::onFileNameChanged(const string &absPath) { unloadAndLoadFont(absPath); + sharesParams.setSoundFontPath(String(absPath)); eventListeners.call(&FluidSynthModel::Listener::fontChanged, this, absPath); } @@ -151,7 +152,6 @@ FluidSynthModel::Listener::~Listener() { } void FluidSynthModel::Listener::fontChanged(FluidSynthModel * model, const string &absPath) { - model->sharesParams.setSoundFontPath(String(absPath)); } //==============================================================================