Changeset 542

Show
Ignore:
Timestamp:
10/01/08 16:43:02 (2 months ago)
Author:
wolke
Message:

fix pattern drag & drop errors

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gui/src/SongEditor/SongEditor.cpp

    r447 r542  
    12721272        QString sText = event->mimeData()->text(); 
    12731273        ERRORLOG(sText); 
    1274          
    1275         if(sText.startsWith("Songs:") or sText.startsWith("Instruments:")) return; 
     1274 
     1275        if( sText.startsWith("Songs:") || sText.startsWith("move instrument:") ) 
     1276                return; 
    12761277 
    12771278        if (sText.startsWith("move pattern:")) { 
  • trunk/gui/src/SoundLibrary/SoundLibraryPanel.cpp

    r530 r542  
    411411                if ( __sound_library_tree->currentItem()->parent()->text(0) == NULL ) 
    412412                { 
     413                        return; 
     414                } 
     415 
     416                if ( __sound_library_tree->currentItem()->parent() == __pattern_item ) { 
    413417                        return; 
    414418                }