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:
Tobias Doerffel
2008-07-05 07:15:29 +00:00
parent 42da7c9ddf
commit 918971aba8
2 changed files with 5 additions and 0 deletions

View File

@@ -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)

View File

@@ -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() )