From 2e7b193988f36ce19c10edebdac890114fb9d09b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 28 Apr 2021 00:57:41 +0200 Subject: [PATCH] Support MacVST2 plugins with multiple child views (e.g. UAD) --- gtk2_ardour/mac_vst_plugin_ui.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/mac_vst_plugin_ui.mm b/gtk2_ardour/mac_vst_plugin_ui.mm index 4666264b97..42ca08b3d0 100644 --- a/gtk2_ardour/mac_vst_plugin_ui.mm +++ b/gtk2_ardour/mac_vst_plugin_ui.mm @@ -95,12 +95,12 @@ MacVSTPluginUI::MacVSTPluginUI (boost::shared_ptr pi, boost::share object:_ns_view]; NSArray* subviews = [_ns_view subviews]; - assert ([subviews count] < 2); for (unsigned long i = 0; i < [subviews count]; ++i) { NSView* subview = [subviews objectAtIndex:i]; [[NSNotificationCenter defaultCenter] addObserver:_resize_notifier selector:@selector(viewResized:) name:NSViewFrameDidChangeNotification object:subview]; + break; /* only watch first subview (if any) */ } }