From 134a20efe075ef49f45e0b4c9c549fec5c3e8c87 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 5 May 2009 05:20:27 -0700 Subject: [PATCH] fixed dependency on libfluidsynth without checking for LMMS_HAVE_FLUIDSYNTH --- plugins/midi_import/midi_import.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/plugins/midi_import/midi_import.cpp b/plugins/midi_import/midi_import.cpp index 820943c90..ed3f3c35a 100644 --- a/plugins/midi_import/midi_import.cpp +++ b/plugins/midi_import/midi_import.cpp @@ -93,6 +93,8 @@ bool midiImport::tryImport( trackContainer * _tc ) { return( FALSE ); } + +#ifdef LMMS_HAVE_FLUIDSYNTH if( engine::hasGUI() && configManager::inst()->defaultSoundfont().isEmpty() ) { @@ -105,6 +107,18 @@ bool midiImport::tryImport( trackContainer * _tc ) "a General MIDI soundfont, specify it in " "settings dialog and try again." ) ); } +#else + if( engine::hasGUI() ) + { + QMessageBox::information( engine::getMainWindow(), + tr( "Setup incomplete" ), + tr( "You did not compile LMMS with support for " + "SoundFont2 player, which is used to add default " + "sound to imported MIDI files. " + "Therefore no sound will be played back after " + "importing this MIDI file." ) ); + } +#endif switch( readID() ) {