Fix indent of previous commit
This commit is contained in:
parent
b3c95e8946
commit
56c5db9115
|
@ -840,26 +840,26 @@ ProcessorEntry::plugin_preset_add ()
|
||||||
boost::shared_ptr<PluginInsert> pi = boost::dynamic_pointer_cast<PluginInsert> (_processor);
|
boost::shared_ptr<PluginInsert> pi = boost::dynamic_pointer_cast<PluginInsert> (_processor);
|
||||||
boost::shared_ptr<ARDOUR::Plugin> plugin = pi->plugin ();
|
boost::shared_ptr<ARDOUR::Plugin> plugin = pi->plugin ();
|
||||||
|
|
||||||
NewPluginPresetDialog d (plugin, _("New Preset"));
|
NewPluginPresetDialog d (plugin, _("New Preset"));
|
||||||
|
|
||||||
Gtk::Window* tlw = dynamic_cast<Gtk::Window*> (_parent->get_toplevel ());
|
Gtk::Window* tlw = dynamic_cast<Gtk::Window*> (_parent->get_toplevel ());
|
||||||
d.set_keep_above (true);
|
d.set_keep_above (true);
|
||||||
if (tlw) {
|
if (tlw) {
|
||||||
d.set_transient_for (*tlw);
|
d.set_transient_for (*tlw);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (d.run ()) {
|
switch (d.run ()) {
|
||||||
case Gtk::RESPONSE_ACCEPT:
|
case Gtk::RESPONSE_ACCEPT:
|
||||||
if (d.name().empty()) {
|
if (d.name().empty()) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
Plugin::PresetRecord const r = plugin->save_preset (d.name());
|
Plugin::PresetRecord const r = plugin->save_preset (d.name());
|
||||||
if (!r.uri.empty ()) {
|
if (!r.uri.empty ()) {
|
||||||
plugin->Plugin::load_preset (r);
|
plugin->Plugin::load_preset (r);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Menu*
|
Menu*
|
||||||
|
|
Loading…
Reference in New Issue