Skip to content

Commit

Permalink
Merge pull request #271 from docsteer/2.1-dev
Browse files Browse the repository at this point in the history
Merge in changes for a 2.1.3 release
  • Loading branch information
docsteer authored Nov 19, 2022
2 parents 1d80f5b + 9b046c9 commit 685a8ff
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/universeview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,10 @@ void UniverseView::sourceChanged(sACNSource *source)
return;
}

// Display sources that only transmit 0xdd?
if (!m_displayDDOnlySource && !source->doing_dmx) { return; }
if (!m_sourceToTableRow.contains(source)) {
sourceOnline(source); // Maybe it's new, maybe it's ignored...
return;
}

int row = m_sourceToTableRow[source];
ui->twSources->item(row,COL_NAME)->setText(source->name);
Expand Down Expand Up @@ -190,7 +192,8 @@ void UniverseView::sourceOnline(sACNSource *source)
if(!m_listener) return;

// Display sources that only transmit 0xdd?
if (!m_displayDDOnlySource && !source->doing_dmx) { return; }
if (!m_displayDDOnlySource && !source->doing_dmx)
return;

int row = ui->twSources->rowCount();
ui->twSources->setRowCount(row+1);
Expand Down

0 comments on commit 685a8ff

Please sign in to comment.