From c102628ac1d37e62e0ee45249ad7f362c4d6d234 Mon Sep 17 00:00:00 2001
From: Aaron Cuevas Lopez <aacuelo@teleco.upv.es>
Date: Sun, 21 Sep 2014 22:17:11 +0200
Subject: [PATCH] Save recordengine selection with state

---
 Source/UI/ControlPanel.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Source/UI/ControlPanel.cpp b/Source/UI/ControlPanel.cpp
index b35f8d106..b1ec75f41 100755
--- a/Source/UI/ControlPanel.cpp
+++ b/Source/UI/ControlPanel.cpp
@@ -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);
 
@@ -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);
-- 
GitLab