Distinguish datacontainer relays by both interval and alignment

This allows being able to change just the alignment, which can happen, since
the order of QML bindings being re-evaluated is non-deterministic

REVIEW: 122593
This commit is contained in:
Kai Uwe Broulik 2015-02-16 18:47:10 +01:00
parent ae2b9f7099
commit b3f607ec1a

View File

@ -117,7 +117,7 @@ void DataContainer::connectVisualization(QObject *visualization, uint pollingInt
if (relay) {
// connected to a relay
//qDebug() << " already connected, but to a relay";
if (relay->m_interval == pollingInterval) {
if (relay->m_interval == pollingInterval && relay->m_align == alignment) {
//qDebug() << " already connected to a relay of the same interval of"
// << pollingInterval << ", nothing to do";
return;