1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Avoided crash in AU hosts that try to create a GUI when the plugin doesn't have one.

This commit is contained in:
jules 2013-08-30 09:30:01 +01:00
parent 508e25afbb
commit 7550b36e19

View file

@ -1236,9 +1236,11 @@ public:
{
deleteUI();
AudioProcessorEditor* editorComp = juceFilter->createEditorIfNeeded();
editorComp->setOpaque (true);
windowComp = new ComponentInHIView (editorComp, mCarbonPane);
if (AudioProcessorEditor* editorComp = juceFilter->createEditorIfNeeded())
{
editorComp->setOpaque (true);
windowComp = new ComponentInHIView (editorComp, mCarbonPane);
}
}
else
{