mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 18:15:45 -05:00
SDRdaemon plugin: enable set button only when address or port fields are edited
This commit is contained in:
parent
944418a720
commit
f2bf04fa08
@ -65,6 +65,7 @@ SDRdaemonGui::SDRdaemonGui(PluginAPI* pluginAPI, QWidget* parent) :
|
||||
DSPEngine::instance()->setSource(m_sampleSource);
|
||||
|
||||
displaySettings();
|
||||
ui->applyButton->setEnabled(false);
|
||||
}
|
||||
|
||||
SDRdaemonGui::~SDRdaemonGui()
|
||||
@ -264,6 +265,18 @@ void SDRdaemonGui::on_applyButton_clicked(bool checked)
|
||||
m_port = udpPort;
|
||||
|
||||
configureUDPLink();
|
||||
|
||||
ui->applyButton->setEnabled(false);
|
||||
}
|
||||
|
||||
void SDRdaemonGui::on_address_textEdited(const QString& arg1)
|
||||
{
|
||||
ui->applyButton->setEnabled(true);
|
||||
}
|
||||
|
||||
void SDRdaemonGui::on_port_textEdited(const QString& arg1)
|
||||
{
|
||||
ui->applyButton->setEnabled(true);
|
||||
}
|
||||
|
||||
void SDRdaemonGui::on_dcOffset_toggled(bool checked)
|
||||
|
@ -87,6 +87,8 @@ private slots:
|
||||
void on_applyButton_clicked(bool checked);
|
||||
void on_dcOffset_toggled(bool checked);
|
||||
void on_iqImbalance_toggled(bool checked);
|
||||
void on_address_textEdited(const QString& arg1);
|
||||
void on_port_textEdited(const QString& arg1);
|
||||
void tick();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user