diff --git a/src/app/PortWidget.cpp b/src/app/PortWidget.cpp index 3da420cd..8bccc1bb 100644 --- a/src/app/PortWidget.cpp +++ b/src/app/PortWidget.cpp @@ -50,7 +50,9 @@ struct PortTooltip : ui::Tooltip { text += string::f("% .3fV", math::normalizeZero(v)); } // Connected to - for (CableWidget* cable : APP->scene->rack->getCablesOnPort(portWidget)) { + std::vector cables = APP->scene->rack->getCablesOnPort(portWidget); + for (auto it = cables.rbegin(); it != cables.rend(); it++) { + CableWidget* cable = *it; PortWidget* otherPw = (portWidget->type == engine::Port::INPUT) ? cable->outputPort : cable->inputPort; if (!otherPw) continue;