mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-21 01:24:21 +00:00
Workaround for some VST3 plugins crashing.
This commit is contained in:
parent
aaf4aa7398
commit
da43672aa3
1 changed files with 5 additions and 1 deletions
|
|
@ -1634,7 +1634,11 @@ public:
|
|||
|
||||
bool hasEditor() const override
|
||||
{
|
||||
ComSmartPtr<IPlugView> view (tryCreatingView()); //N.B.: Must use a ComSmartPtr to not delete the view from the plugin permanently!
|
||||
// (if possible, avoid creating a second instance of the editor, because that crashes some plugins)
|
||||
if (getActiveEditor() != nullptr)
|
||||
return true;
|
||||
|
||||
ComSmartPtr<IPlugView> view (tryCreatingView());
|
||||
return view != nullptr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue