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:
parent
508e25afbb
commit
7550b36e19
1 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue