diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-06 16:07:48 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-06 16:07:48 +0000 |
commit | 77364b0e25bcf97d0f3000ee97c27b2dca8454c6 (patch) | |
tree | 65dacad910521e6fdef33b657637ef145a2e4ee0 | |
parent | db6be4829ee03a7cfc4baa2ddd6491afe4a2083e (diff) |
fix use of connection_index
git-svn-id: svn://localhost/ardour2/branches/3.0@5744 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | gtk2_ardour/mixer_strip.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc index 5d0acfd9ba..5f7a89d90a 100644 --- a/gtk2_ardour/mixer_strip.cc +++ b/gtk2_ardour/mixer_strip.cc @@ -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; |