diff --git a/gtk2_ardour/lv2_plugin_ui.cc b/gtk2_ardour/lv2_plugin_ui.cc index 7f37b8c8ca..1e2de1e7b4 100644 --- a/gtk2_ardour/lv2_plugin_ui.cc +++ b/gtk2_ardour/lv2_plugin_ui.cc @@ -552,9 +552,7 @@ LV2PluginUI::resizable() int LV2PluginUI::package(Gtk::Window& win) { - if (_external_ui_ptr) { - _win_ptr = &win; - } else { + if (!_external_ui_ptr) { /* forward configure events to plugin window */ win.signal_configure_event().connect( sigc::mem_fun(*this, &LV2PluginUI::configure_handler)); diff --git a/gtk2_ardour/lv2_plugin_ui.h b/gtk2_ardour/lv2_plugin_ui.h index 4259398a43..811fcdd14c 100644 --- a/gtk2_ardour/lv2_plugin_ui.h +++ b/gtk2_ardour/lv2_plugin_ui.h @@ -96,7 +96,6 @@ private: LV2_Feature _lv2ui_request_feature; struct lv2_external_ui* _external_ui_ptr; LV2_Feature _parent_feature; - Gtk::Window* _win_ptr; void* _inst; typedef std::set Updates; Updates _updates;