From ed4970a20308b4a03bb0a96f8c6580a84312fb79 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 26 Apr 2010 16:40:27 +0000 Subject: close a carbon window for an AU plugin *in addition to*, not just instead of, the containing cocoa window git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6995 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/au_pluginui.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/au_pluginui.mm b/gtk2_ardour/au_pluginui.mm index 1aa134adbf..f6ba181adf 100644 --- a/gtk2_ardour/au_pluginui.mm +++ b/gtk2_ardour/au_pluginui.mm @@ -198,7 +198,9 @@ AUPluginUI::~AUPluginUI () [[NSNotificationCenter defaultCenter] removeObserver:_notify]; [win removeChildWindow:cocoa_parent]; - } else if (carbon_window) { + } + + if (carbon_window) { /* not parented, just overlaid on top of our window */ DisposeWindow (carbon_window); } -- cgit v1.2.3