From 918971aba8ff1a35749df9d46df6aaac76130aa6 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sat, 5 Jul 2008 07:15:29 +0000 Subject: [PATCH] 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 --- ChangeLog | 3 +++ src/core/automation_pattern.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index b5fa35216..85e9a139c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2008-07-05 Tobias Doerffel + * 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) diff --git a/src/core/automation_pattern.cpp b/src/core/automation_pattern.cpp index 58908ceab..a0049f5ee 100644 --- a/src/core/automation_pattern.cpp +++ b/src/core/automation_pattern.cpp @@ -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() )