1
0
Fork 0
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:
jules 2014-03-18 17:29:14 +00:00
parent aaf4aa7398
commit da43672aa3

View file

@ -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;
}