mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
sort control protocols in name order after discovery
This commit is contained in:
parent
72af571f0c
commit
d95d10eb55
1 changed files with 10 additions and 0 deletions
|
|
@ -324,6 +324,13 @@ ControlProtocolManager::load_mandatory_protocols ()
|
|||
}
|
||||
}
|
||||
|
||||
struct ControlProtocolOrderByName
|
||||
{
|
||||
bool operator() (ControlProtocolInfo* const & a, ControlProtocolInfo* const & b) const {
|
||||
return a->name < b->name;
|
||||
}
|
||||
};
|
||||
|
||||
void
|
||||
ControlProtocolManager::discover_control_protocols ()
|
||||
{
|
||||
|
|
@ -367,6 +374,9 @@ ControlProtocolManager::discover_control_protocols ()
|
|||
for (vector<std::string>::iterator i = cp_modules.begin(); i != cp_modules.end(); ++i) {
|
||||
control_protocol_discover (*i);
|
||||
}
|
||||
|
||||
ControlProtocolOrderByName cpn;
|
||||
control_protocol_info.sort (cpn);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue