OSC: Plugin activate should detect no plugins
This commit is contained in:
parent
f3185032a0
commit
15fa89c8dd
@ -4535,6 +4535,7 @@ OSC::sel_plugin_activate (float state, lo_message msg)
|
||||
return -1;
|
||||
}
|
||||
OSCSurface *sur = get_surface(get_address (msg));
|
||||
if (sur->plugins.size() > 0) {
|
||||
boost::shared_ptr<Stripable> s = sur->select;
|
||||
|
||||
boost::shared_ptr<Route> r = boost::dynamic_pointer_cast<Route> (s);
|
||||
@ -4553,6 +4554,7 @@ OSC::sel_plugin_activate (float state, lo_message msg)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
float_message ("/select/plugin/activate", 0, get_address (msg));
|
||||
PBD::warning << "OSC: Select has no Plugin." << endmsg;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user