X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fsynthesizer%2Fsynthesizer.C;fp=cinelerra-5.1%2Fplugins%2Fsynthesizer%2Fsynthesizer.C;h=5838a48ffbc68f69730a17975cdc85bef05b024d;hb=a91176d7510310919776d0250d5708bb244d440b;hp=840eb90c341a5af0d549716f0ab4fa99f36c22d3;hpb=c8c97de4bed1b06c686fe7155e41ecb85d633b34;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/plugins/synthesizer/synthesizer.C b/cinelerra-5.1/plugins/synthesizer/synthesizer.C index 840eb90c..5838a48f 100644 --- a/cinelerra-5.1/plugins/synthesizer/synthesizer.C +++ b/cinelerra-5.1/plugins/synthesizer/synthesizer.C @@ -176,15 +176,13 @@ void Synth::save_data(KeyFrame *keyframe) void Synth::update_gui() { - if(thread) - { - if(load_configuration()) - { - thread->window->lock_window(); - ((SynthWindow*)thread->window)->update_gui(); - thread->window->unlock_window(); - } - } + if( !thread ) return; + SynthWindow *window = (SynthWindow*)thread->window; +// load_configuration,read_data deletes oscillator_config + window->lock_window("Synth::update_gui"); + if( load_configuration() ) + window->update_gui(); + window->unlock_window(); }