13
0

OSC: Plugin activate should detect no plugins

This commit is contained in:
Len Ovens 2018-01-02 10:22:42 -08:00
parent f3185032a0
commit 15fa89c8dd

View File

@ -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;