mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 20:55:48 +01:00
fix use of connection_index
git-svn-id: svn://localhost/ardour2/branches/3.0@5744 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
db6be4829e
commit
77364b0e25
1 changed files with 2 additions and 3 deletions
|
|
@ -926,7 +926,6 @@ MixerStrip::update_io_button (boost::shared_ptr<ARDOUR::Route> route, Width widt
|
|||
Port *port;
|
||||
vector<string> connections;
|
||||
|
||||
uint32_t connection_index = 0;
|
||||
uint32_t total_connection_count = 0;
|
||||
uint32_t io_connection_count = 0;
|
||||
uint32_t ardour_connection_count = 0;
|
||||
|
|
@ -966,12 +965,12 @@ MixerStrip::update_io_button (boost::shared_ptr<ARDOUR::Route> route, Width widt
|
|||
|
||||
port->get_connections(connections);
|
||||
io_connection_count = 0;
|
||||
|
||||
|
||||
if (!connections.empty()) {
|
||||
for (vector<string>::iterator i = connections.begin(); i != connections.end(); ++i) {
|
||||
string& connection_name (*i);
|
||||
|
||||
if (connection_index == 0) {
|
||||
if (io_connection_count == 0) {
|
||||
tooltip << endl << port->name().substr(port->name().find("/") + 1) << " -> " << connection_name;
|
||||
} else {
|
||||
tooltip << ", " << connection_name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue