save and restore automationPattern's name (closes #2011011)
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1272 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
2008-07-05 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* src/core/automation_pattern.cpp:
|
||||
save and restore automationPattern's name (closes #2011011)
|
||||
|
||||
* include/inline_automation.h:
|
||||
delete automation-pattern is in correct thread (closes #2008232)
|
||||
|
||||
|
||||
@@ -237,6 +237,7 @@ float automationPattern::valueAt( const midiTime & _time )
|
||||
void automationPattern::saveSettings( QDomDocument & _doc, QDomElement & _this )
|
||||
{
|
||||
_this.setAttribute( "pos", startPosition() );
|
||||
_this.setAttribute( "name", name() );
|
||||
|
||||
for( timeMap::const_iterator it = m_timeMap.begin();
|
||||
it != m_timeMap.end(); ++it )
|
||||
@@ -264,6 +265,7 @@ void automationPattern::loadSettings( const QDomElement & _this )
|
||||
clear();
|
||||
|
||||
movePosition( _this.attribute( "pos" ).toInt() );
|
||||
setName( _this.attribute( "name" ) );
|
||||
|
||||
for( QDomNode node = _this.firstChild(); !node.isNull();
|
||||
node = node.nextSibling() )
|
||||
|
||||
Reference in New Issue
Block a user