AutomatableModel: fix error in loading connected controllers

This commit is contained in:
Vesa
2014-03-04 23:51:45 +02:00
parent 5d1eb8a687
commit 06421005dd

View File

@@ -147,7 +147,7 @@ void AutomatableModel::loadSettings( const QDomElement& element, const QString&
QDomNode connectionNode = element.namedItem( "connection" );
if( connectionNode.isElement() )
{
QDomNode thisConnection = node.toElement().namedItem( name );
QDomNode thisConnection = connectionNode.toElement().namedItem( name );
if( thisConnection.isElement() )
{
setControllerConnection( new ControllerConnection( (Controller*)NULL ) );