diff --git a/OpenRGBE131ReceiverDialog.cpp b/OpenRGBE131ReceiverDialog.cpp index 5800396..11a38c6 100644 --- a/OpenRGBE131ReceiverDialog.cpp +++ b/OpenRGBE131ReceiverDialog.cpp @@ -187,14 +187,19 @@ void OpenRGBE131ReceiverDialog::E131ReceiverThreadFunction() } /*-----------------------------------------------------*\ - | Join the configured universes | + | Join the configured universes if multicast enabled | \*-----------------------------------------------------*/ + bool multicast = ui->EnableMulticastBox->checkState() == Qt::Checked; + for(unsigned int universe_idx = 0; universe_idx < universe_list.size(); universe_idx++) { - if(e131_multicast_join(sockfd, universe_list[universe_idx].universe) < 0) + if(multicast) { - printf("Join error\r\n"); - return; + if(e131_multicast_join(sockfd, universe_list[universe_idx].universe) < 0) + { + printf("Join error\r\n"); + return; + } } } diff --git a/OpenRGBE131ReceiverDialog.ui b/OpenRGBE131ReceiverDialog.ui index 4d8dbca..e154432 100644 --- a/OpenRGBE131ReceiverDialog.ui +++ b/OpenRGBE131ReceiverDialog.ui @@ -36,6 +36,13 @@ + + + + Source + + + @@ -78,10 +85,16 @@ - - + + + + Qt::LeftToRight + - Source + Enable Multicast + + + true