diff --git a/Source/Processors/Editors/GenericEditor.cpp b/Source/Processors/Editors/GenericEditor.cpp index 36b99a670c9c2f9ef46ad34db75050f150dee42d..0de056b889d1fcd5e5eee71b6b9966d670190c26 100644 --- a/Source/Processors/Editors/GenericEditor.cpp +++ b/Source/Processors/Editors/GenericEditor.cpp @@ -444,9 +444,11 @@ void GenericEditor::update() if (numChannels == 0) { - drawerButton->setVisible(false); + if (drawerButton != 0) + drawerButton->setVisible(false); } else { - drawerButton->setVisible(true); + if (drawerButton != 0) + drawerButton->setVisible(true); } updateVisualizer(); // does nothing unless this method diff --git a/Source/Processors/Editors/VisualizerEditor.h b/Source/Processors/Editors/VisualizerEditor.h index f31a553faf8c98bf391777a3de45e401df764ed3..3f8796f747d79e4c84dc5d58fdde579cfe717782 100644 --- a/Source/Processors/Editors/VisualizerEditor.h +++ b/Source/Processors/Editors/VisualizerEditor.h @@ -67,8 +67,8 @@ public: void updateVisualizer(); - ScopedPointer <DataWindow> dataWindow; - ScopedPointer <Visualizer> canvas; + ScopedPointer<DataWindow> dataWindow; + ScopedPointer<Visualizer> canvas; private: