m_arpDirectionModel sort element order (#3171)

This commit is contained in:
Oskar Wallgren
2016-12-21 01:36:51 +01:00
committed by GitHub
parent 1f3947408d
commit b9534f4271
3 changed files with 17 additions and 2 deletions

View File

@@ -883,6 +883,21 @@ void DataFile::upgrade_1_1_91()
el.setAttribute( a, ( el.attribute( a ) == "0" ) ? "1" : "0" );
}
}
list = elementsByTagName( "arpeggiator" );
for( int i = 0; !list.item( i ).isNull(); ++i )
{
QDomElement el = list.item( i ).toElement();
// Swap elements ArpDirRandom and ArpDirDownAndUp
if( el.attribute( "arpdir" ) == "3" )
{
el.setAttribute( "arpdir", "4" );
}
else if( el.attribute( "arpdir" ) == "4" )
{
el.setAttribute( "arpdir", "3" );
}
}
}