From f1059bd5473cc01a4f8e0afaf41fb45123487365 Mon Sep 17 00:00:00 2001 From: f4exb Date: Tue, 7 Dec 2021 05:27:58 +0100 Subject: [PATCH] Remote source: corrected dataApplyButton --- plugins/channeltx/remotesource/remotesourcegui.cpp | 10 +++------- plugins/channeltx/remotesource/remotesourcegui.ui | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/plugins/channeltx/remotesource/remotesourcegui.cpp b/plugins/channeltx/remotesource/remotesourcegui.cpp index ea6f77d15..db72f107f 100644 --- a/plugins/channeltx/remotesource/remotesourcegui.cpp +++ b/plugins/channeltx/remotesource/remotesourcegui.cpp @@ -330,12 +330,9 @@ void RemoteSourceGUI::on_dataPort_returnPressed() bool dataOk; int dataPort = ui->dataPort->text().toInt(&dataOk); - if((!dataOk) || (dataPort < 1024) || (dataPort > 65535)) - { + if ((!dataOk) || (dataPort < 1024) || (dataPort > 65535)) { return; - } - else - { + } else { m_settings.m_dataPort = dataPort; } @@ -350,8 +347,7 @@ void RemoteSourceGUI::on_dataApplyButton_clicked(bool checked) bool dataOk; int udpDataPort = ui->dataPort->text().toInt(&dataOk); - if((dataOk) && (udpDataPort >= 1024) && (udpDataPort < 65535)) - { + if ((dataOk) && (udpDataPort >= 1024) && (udpDataPort < 65535)) { m_settings.m_dataPort = udpDataPort; } diff --git a/plugins/channeltx/remotesource/remotesourcegui.ui b/plugins/channeltx/remotesource/remotesourcegui.ui index c2d466504..756ba24c7 100644 --- a/plugins/channeltx/remotesource/remotesourcegui.ui +++ b/plugins/channeltx/remotesource/remotesourcegui.ui @@ -139,7 +139,7 @@ - + 30