diff --git a/plugins/sf2_player/Makefile.am b/plugins/sf2_player/Makefile.am index 37afb4754..77f9d9a77 100644 --- a/plugins/sf2_player/Makefile.am +++ b/plugins/sf2_player/Makefile.am @@ -10,8 +10,8 @@ AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="sf2player" %.moc: ./%.h $(MOC) -o $@ $< -%.ui: ./%.ui - $(UIC) -o ui_$@ $< +ui_%h: ./%.ui + $(UIC) -o $@ $< MOC_FILES = ./sf2_player.moc ./patches_dialog.moc diff --git a/plugins/sf2_player/sf2_player.cpp b/plugins/sf2_player/sf2_player.cpp index 0225bbc2c..0fad1a111 100644 --- a/plugins/sf2_player/sf2_player.cpp +++ b/plugins/sf2_player/sf2_player.cpp @@ -49,7 +49,7 @@ extern "C" { -plugin::descriptor sf2_plugin_descriptor = +plugin::descriptor sf2player_plugin_descriptor = { STRINGIFY_PLUGIN_NAME( PLUGIN_NAME ), "Sf2Player", @@ -66,7 +66,7 @@ plugin::descriptor sf2_plugin_descriptor = sf2Instrument::sf2Instrument( instrumentTrack * _instrument_track ) : - instrument( _instrument_track, &sf2_plugin_descriptor ), + instrument( _instrument_track, &sf2player_plugin_descriptor ), m_bankNum( -1, -1, 999, 1, this ), m_patchNum( -1, -1, 127, 1, this ), m_filename( "" ), @@ -131,7 +131,7 @@ void sf2Instrument::loadSettings( const QDomElement & _this ) QString sf2Instrument::nodeName( void ) const { - return( sf2_plugin_descriptor.name ); + return( sf2player_plugin_descriptor.name ); } @@ -371,9 +371,6 @@ void sf2InstrumentView::showFileDialog( void ) ofd.selectFile( k->m_filename ); } -// HACK - ofd.setDirectory("/home/llama"); - if( ofd.exec() == QDialog::Accepted && !ofd.selectedFiles().isEmpty() ) { QString f = ofd.selectedFiles()[0];