When LV2 effects are disabled at compilation, disable the LV2 submenu too. Without this patch compilation errors out with:
helper.cpp: In function ‘QMenu* MusEGui::populateAddSynth(QWidget*)’: helper.cpp:418:50: error: ‘LV2Synth’ is not a member of ‘MusECore’ Signed-off-by: Michele Ballabio <[email protected]> --- muse2/muse/helper.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/muse2/muse/helper.cpp b/muse2/muse/helper.cpp index 0afb4af..479dbf6 100644 --- a/muse2/muse/helper.cpp +++ b/muse2/muse/helper.cpp @@ -415,8 +415,10 @@ QMenu* populateAddSynth(QWidget* parent) if (type == MusECore::Synth::DSSI_SYNTH && ((MusECore::DssiSynth*)synth)->isDssiVst() ) // Place Wine VSTs in a separate sub menu type = MusECore::Synth::VST_SYNTH; +#ifdef LV2_SUPPORT if (type == MusECore::Synth::LV2_SYNTH && !((MusECore::LV2Synth*)synth)->isSynth() ) // Place LV2 effects in a separate sub menu type = MusECore::Synth::LV2_EFFECT; +#endif if(type >= ntypes) continue; -- 2.0.0 ------------------------------------------------------------------------------ New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet _______________________________________________ Lmuse-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lmuse-developer
