"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gui/editors/BBEditor.cpp" between
lmms-1.2.0-rc7.tar.gz and lmms-1.2.0-rc8.tar.gz

About: LMMS (Linux MultiMedia Studio) is a sound generation system (creation of melodies and beats, synthesis and mixing of sounds, arranging of samples; full MIDI support). Release candidate.

BBEditor.cpp  (lmms-1.2.0-rc7):BBEditor.cpp  (lmms-1.2.0-rc8)
skipping to change at line 225 skipping to change at line 225
void BBTrackContainerView::dropEvent(QDropEvent* de) void BBTrackContainerView::dropEvent(QDropEvent* de)
{ {
QString type = StringPairDrag::decodeKey( de ); QString type = StringPairDrag::decodeKey( de );
QString value = StringPairDrag::decodeValue( de ); QString value = StringPairDrag::decodeValue( de );
if( type.left( 6 ) == "track_" ) if( type.left( 6 ) == "track_" )
{ {
DataFile dataFile( value.toUtf8() ); DataFile dataFile( value.toUtf8() );
Track * t = Track::create( dataFile.content().firstChild().toElem ent(), model() ); Track * t = Track::create( dataFile.content().firstChild().toElem ent(), model() );
t->deleteTCOs(); // Ensure BB TCOs exist
bool hasValidBBTCOs = false;
if (t->getTCOs().size() == m_bbtc->numOfBBs())
{
hasValidBBTCOs = true;
for (int i = 0; i < t->getTCOs().size(); ++i)
{
if (t->getTCOs()[i]->startPosition() != MidiTime(
i, 0))
{
hasValidBBTCOs = false;
break;
}
}
}
if (!hasValidBBTCOs)
{
t->deleteTCOs();
t->createTCOsForBB(m_bbtc->numOfBBs() - 1);
}
m_bbtc->updateAfterTrackAdd(); m_bbtc->updateAfterTrackAdd();
de->accept(); de->accept();
} }
else else
{ {
TrackContainerView::dropEvent( de ); TrackContainerView::dropEvent( de );
} }
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 20 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)