Skip to content
Snippets Groups Projects
Commit 063c3932 authored by jsiegle's avatar jsiegle
Browse files

Make sure last string in bandpass filter is saved

parent 689be7be
No related branches found
No related tags found
No related merge requests found
...@@ -202,6 +202,9 @@ void FilterEditor::saveCustomParameters(XmlElement* xml) ...@@ -202,6 +202,9 @@ void FilterEditor::saveCustomParameters(XmlElement* xml)
xml->setAttribute("Type", "FilterEditor"); xml->setAttribute("Type", "FilterEditor");
lastHighCutString = highCutValue->getText();
lastLowCutString = lowCutValue->getText();
XmlElement* textLabelValues = xml->createNewChildElement("VALUES"); XmlElement* textLabelValues = xml->createNewChildElement("VALUES");
textLabelValues->setAttribute("HighCut",lastHighCutString); textLabelValues->setAttribute("HighCut",lastHighCutString);
textLabelValues->setAttribute("LowCut",lastLowCutString); textLabelValues->setAttribute("LowCut",lastLowCutString);
...@@ -220,4 +223,6 @@ void FilterEditor::loadCustomParameters(XmlElement* xml) ...@@ -220,4 +223,6 @@ void FilterEditor::loadCustomParameters(XmlElement* xml)
applyFilterOnADC->setToggleState(xmlNode->getBoolAttribute("ApplyToADC",false),true); applyFilterOnADC->setToggleState(xmlNode->getBoolAttribute("ApplyToADC",false),true);
} }
} }
} }
...@@ -294,7 +294,7 @@ void EditorViewport::clearSignalChain() ...@@ -294,7 +294,7 @@ void EditorViewport::clearSignalChain()
} }
repaint(); //repaint();
} }
void EditorViewport::makeEditorVisible(GenericEditor* editor, bool highlight, bool updateSettings) void EditorViewport::makeEditorVisible(GenericEditor* editor, bool highlight, bool updateSettings)
......
...@@ -395,8 +395,9 @@ void SignalChainManager::updateVisibleEditors(GenericEditor* activeEditor, ...@@ -395,8 +395,9 @@ void SignalChainManager::updateVisibleEditors(GenericEditor* activeEditor,
else else
{ {
if (editorToAdd->tabNumber() >= 0) if (editorToAdd->tabNumber() >= 0 && editorToAdd->tabNumber() < signalChainArray.size())
signalChainArray[editorToAdd->tabNumber()]->setToggleState(true, false); signalChainArray[editorToAdd->tabNumber()]->setToggleState(true, false);
std::cout << "No source found." << std::endl; std::cout << "No source found." << std::endl;
editorToAdd = 0; editorToAdd = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment