diff options
author | David Robillard <d@drobilla.net> | 2016-07-08 16:13:52 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-07-08 16:13:52 -0400 |
commit | 7135ce7a402d90fc1312f861dda9009374a904ef (patch) | |
tree | a52d7b5005d1130a08d8ca1e4cf25db7cd5e8785 /src/JackDriver.cpp | |
parent | da388743027dfec64dc7ad7f1b3927eb7ef62468 (diff) | |
download | patchage-7135ce7a402d90fc1312f861dda9009374a904ef.tar.gz patchage-7135ce7a402d90fc1312f861dda9009374a904ef.tar.bz2 patchage-7135ce7a402d90fc1312f861dda9009374a904ef.zip |
Add option to disable port sorting
Fixes #1082
Diffstat (limited to 'src/JackDriver.cpp')
-rw-r--r-- | src/JackDriver.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp index a72bd8f..5daedae 100644 --- a/src/JackDriver.cpp +++ b/src/JackDriver.cpp @@ -206,11 +206,13 @@ JackDriver::create_port(PatchageModule& parent, jack_port_t* port, PortID id) boost::optional<int> order; #ifdef HAVE_JACK_METADATA - const jack_uuid_t uuid = jack_port_uuid(port); - const std::string order_str = get_property(uuid, JACKEY_ORDER); - label = get_property(uuid, JACK_METADATA_PRETTY_NAME); - if (!order_str.empty()) { - order = atoi(order_str.c_str()); + const jack_uuid_t uuid = jack_port_uuid(port); + if (_app->conf()->get_sort_ports()) { + const std::string order_str = get_property(uuid, JACKEY_ORDER); + label = get_property(uuid, JACK_METADATA_PRETTY_NAME); + if (!order_str.empty()) { + order = atoi(order_str.c_str()); + } } #endif |