LadspaControl: set name property for tempoSyncKnobModel

For each model but the tempoSyncKnobModel the name property was properly
passed to the according constructor. This made time-based knobs in LADSPA
effects have no internal name, e.g. there were blank captions in the
knob's context menu or empty titles when used in combination with
automation patterns.
(cherry picked from commit ebd3d26531)
This commit is contained in:
Tobias Doerffel
2009-05-03 15:26:43 +02:00
parent 9c4dc40de1
commit 6b0c083ce5

View File

@@ -1,7 +1,7 @@
/*
* ladspa_control.cpp - model for controlling a LADSPA port
*
* Copyright (c) 2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2008-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2006-2008 Danny McRae <khjklujn/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
@@ -37,13 +37,12 @@ ladspaControl::ladspaControl( model * _parent, port_desc_t * _port,
m_linkEnabledModel( _link, this, tr( "Link channels" ) ),
m_toggledModel( FALSE, this, m_port->name ),
m_knobModel( 0, 0, 0, 1, this, m_port->name ),
m_tempoSyncKnobModel( 0, 0, 0, 1, m_port->max, this )
m_tempoSyncKnobModel( 0, 0, 0, 1, m_port->max, this, m_port->name )
{
if( m_link )
{
connect( &m_linkEnabledModel, SIGNAL( dataChanged() ),
this, SLOT( linkStateChanged() ) );
}
switch( m_port->data_type )