From a2c6c920350e86095b6945dd50a1951a32d2e5d9 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Mon, 6 Feb 2006 13:39:14 +0000 Subject: [PATCH] cleanups git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@78 0778d3d1-df1d-0410-868b-ea421aaaa00d --- .../audio_file_processor/audio_file_processor.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/plugins/audio_file_processor/audio_file_processor.cpp b/plugins/audio_file_processor/audio_file_processor.cpp index 857e4793b..57a013b20 100644 --- a/plugins/audio_file_processor/audio_file_processor.cpp +++ b/plugins/audio_file_processor/audio_file_processor.cpp @@ -431,8 +431,12 @@ void audioFileProcessor::deleteNotePluginData( notePlayHandle * _n ) void audioFileProcessor::dragEnterEvent( QDragEnterEvent * _dee ) { - stringPairDrag::processDragEnterEvent( _dee, - QString( "samplefile,tco_%1" ).arg( track::SAMPLE_TRACK ) ); + if( stringPairDrag::processDragEnterEvent( _dee, + QString( "samplefile,tco_%1" ).arg( track::SAMPLE_TRACK ) ) == + FALSE ) + { + _dee->ignore(); + } } @@ -444,7 +448,7 @@ void audioFileProcessor::dropEvent( QDropEvent * _de ) QString value = stringPairDrag::decodeValue( _de ); if( type == "samplefile" ) { - setAudioFile( stringPairDrag::decodeValue( _de ) ); + setAudioFile( value ); _de->accept(); } else if( type == QString( "tco_%1" ).arg( track::SAMPLE_TRACK ) ) @@ -454,6 +458,10 @@ void audioFileProcessor::dropEvent( QDropEvent * _de ) attribute( "src" ) ); _de->accept(); } + else + { + _de->ignore(); + } }