MCPcopy Create free account
hub / github.com/LMMS/lmms / saveSettings

Method saveSettings

src/core/ControllerConnection.cpp:176–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174
175
176void ControllerConnection::saveSettings( QDomDocument & _doc, QDomElement & _this )
177{
178 if( Engine::getSong() )
179 {
180 if( m_ownsController )
181 {
182 m_controller->saveState( _doc, _this );
183 }
184 else
185 {
186 int id = Engine::getSong()->controllers().indexOf( m_controller );
187 if( id >= 0 )
188 {
189 _this.setAttribute( "id", id );
190 }
191 }
192 }
193}
194
195
196

Callers

nothing calls this directly

Calls 2

getSongFunction · 0.85
saveStateMethod · 0.45

Tested by

no test coverage detected