| 174 | |
| 175 | |
| 176 | void 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 |