From 12b5d3c456859e2271a0a4b4a7d1ec4117605897 Mon Sep 17 00:00:00 2001 From: Ethan Blackwood Date: Mon, 30 Apr 2018 14:59:28 -0400 Subject: [PATCH] Fix 'drawableSubprocessor' not being set --- Source/Plugins/LfpDisplayNode/LfpDisplayEditor.cpp | 3 +-- Source/Plugins/LfpDisplayNode/LfpDisplayNode.cpp | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/Plugins/LfpDisplayNode/LfpDisplayEditor.cpp b/Source/Plugins/LfpDisplayNode/LfpDisplayEditor.cpp index 8facb7c5a..8bc61c30b 100644 --- a/Source/Plugins/LfpDisplayNode/LfpDisplayEditor.cpp +++ b/Source/Plugins/LfpDisplayNode/LfpDisplayEditor.cpp @@ -71,7 +71,6 @@ void LfpDisplayEditor::stopAcquisition() Visualizer* LfpDisplayEditor::createNewCanvas() { canvas = new LfpDisplayCanvas(lfpProcessor); - updateSubprocessorSelectorOptions(); return canvas; } @@ -141,7 +140,7 @@ void LfpDisplayEditor::updateSubprocessorSelectorOptions() if (defaultSubprocessor >= 0) { - subprocessorSelection->setSelectedId(defaultSubprocessor + 1, dontSendNotification); + subprocessorSelection->setSelectedId(defaultSubprocessor + 1, sendNotification); String sampleRateLabelText = "Sample Rate: "; sampleRateLabelText += String(inputSampleRates[*(inputSubprocessorIndices.begin() + defaultSubprocessor)]); diff --git a/Source/Plugins/LfpDisplayNode/LfpDisplayNode.cpp b/Source/Plugins/LfpDisplayNode/LfpDisplayNode.cpp index f381f126a..fbff1dfbc 100644 --- a/Source/Plugins/LfpDisplayNode/LfpDisplayNode.cpp +++ b/Source/Plugins/LfpDisplayNode/LfpDisplayNode.cpp @@ -147,7 +147,6 @@ void LfpDisplayNode::setSubprocessor(int sp) subprocessorToDraw = sp; std::cout << "LfpDisplayNode setting subprocessor to " << sp << std::endl; updateSubprocessorsFlag = false; - updateSettings(); }