Skip to content

Commit

Permalink
InstrumentTrack: Support the discardMIDIConnections save option.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reflexe committed Jun 9, 2019
1 parent 5ac3adc commit d8b6cc8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/tracks/InstrumentTrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,12 @@ void InstrumentTrack::saveTrackSpecificSettings( QDomDocument& doc, QDomElement
m_soundShaping.saveState( doc, thisElement );
m_noteStacking.saveState( doc, thisElement );
m_arpeggio.saveState( doc, thisElement );
m_midiPort.saveState( doc, thisElement );

// Don't save midi port info if the user chose to.
if (Engine::getSong()->isSavingProject()
&& !Engine::getSong()->getSaveOptions().discardMIDIConnections.value())
m_midiPort.saveState( doc, thisElement );

m_audioPort.effects()->saveState( doc, thisElement );
}

Expand Down

0 comments on commit d8b6cc8

Please sign in to comment.