- if (plugin_processor->get_gui() == 0) {
-
- plugin_ui = new PluginUIWindow (plugin_processor, _session.frame_rate(), _session.engine().frames_per_cycle());
-
- if (_owner_is_mixer) {
- ARDOUR_UI::instance()->the_mixer()->ensure_float (*plugin_ui);
- } else {
- ARDOUR_UI::instance()->the_editor().ensure_float (*plugin_ui);
- }
-
- WindowTitle title(Glib::get_application_name());
- title += generate_processor_title (plugin_processor);
- plugin_ui->set_title (title.get_string());
-
- plugin_processor->set_gui (plugin_ui);
-
- // change window title when route name is changed
- _route->NameChanged.connect (bind (mem_fun(*this, &ProcessorBox::route_name_changed), plugin_ui, boost::weak_ptr<PluginInsert> (plugin_processor)));
-
-
- } else {
- plugin_ui = reinterpret_cast<PluginUIWindow *> (plugin_processor->get_gui());
- }
+ WindowTitle title(Glib::get_application_name());
+ title += generate_processor_title (plugin_insert);
+ plugin_ui->set_title (title.get_string());