Skip to content

Commit

Permalink
Add project upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Nov 10, 2017
1 parent d5a96a1 commit a5e00c0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/LadspaEffect/calf/config.h.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#define VERSION "${VERSION}"
#define PACKAGE_NAME "calf"
#define PACKAGE_NAME "veal"
#define USE_LADSPA 1
23 changes: 23 additions & 0 deletions src/core/DataFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,29 @@ void DataFile::upgrade_1_3_0()
}
}
}

list = elementsByTagName( "effect" );
for( int i = 0; !list.item( i ).isNull(); ++i )
{
QDomElement el = list.item( i ).toElement();
if( el.attribute( "name" ) == "ladspaeffect" )
{
QDomNodeList children = el.elementsByTagName( "key" );
for( int j = 0; !children.item( j ).isNull(); ++j )
{
QDomElement child = children.item( j ).toElement();
QDomNodeList grandchildren = child.elementsByTagName( "attribute" );
for( int k = 0; !grandchildren.item( k ).isNull(); ++k )
{
QDomElement grandchild = grandchildren.item( k ).toElement();
if( grandchild.attribute( "name" ) == "file" && grandchild.attribute( "value" ) == "calf" )
{
grandchild.setAttribute( "value", "veal" );
}
}
}
}
}
}


Expand Down

0 comments on commit a5e00c0

Please sign in to comment.