Skip to content

Commit

Permalink
Save recordengine selection with state
Browse files Browse the repository at this point in the history
  • Loading branch information
aacuevas committed Sep 21, 2014
1 parent f1c46a1 commit c102628
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/UI/ControlPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,7 @@ void ControlPanel::saveStateToXml(XmlElement* xml)
controlPanelState->setAttribute("isOpen",open);
controlPanelState->setAttribute("prependText",prependText->getText());
controlPanelState->setAttribute("appendText",appendText->getText());
controlPanelState->setAttribute("recordEngine",recordSelector->getSelectedId());

audioEditor->saveStateToXml(xml);

Expand All @@ -966,6 +967,7 @@ void ControlPanel::loadStateFromXml(XmlElement* xml)

appendText->setText(xmlNode->getStringAttribute("appendText", ""), dontSendNotification);
prependText->setText(xmlNode->getStringAttribute("prependText", ""), dontSendNotification);
recordSelector->setSelectedId(xmlNode->getIntAttribute("recordEngine",1), sendNotificationSync);

bool isOpen = xmlNode->getBoolAttribute("isOpen");
openState(isOpen);
Expand Down

0 comments on commit c102628

Please sign in to comment.