qt: Fix network adapter combobox being grayed out when PCap is initially enabled
This commit is contained in:
@@ -127,3 +127,13 @@ void SettingsNetwork::on_pushButtonConfigure_clicked() {
|
|||||||
DeviceConfig::ConfigureDevice(network_card_getdevice(ui->comboBoxAdapter->currentData().toInt()), 0, qobject_cast<Settings*>(Settings::settings));
|
DeviceConfig::ConfigureDevice(network_card_getdevice(ui->comboBoxAdapter->currentData().toInt()), 0, qobject_cast<Settings*>(Settings::settings));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void SettingsNetwork::on_comboBoxPcap_currentIndexChanged(int index)
|
||||||
|
{
|
||||||
|
if (index < 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
enableElements(ui);
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -25,6 +25,8 @@ private slots:
|
|||||||
void on_comboBoxAdapter_currentIndexChanged(int index);
|
void on_comboBoxAdapter_currentIndexChanged(int index);
|
||||||
void on_comboBoxNetwork_currentIndexChanged(int index);
|
void on_comboBoxNetwork_currentIndexChanged(int index);
|
||||||
|
|
||||||
|
void on_comboBoxPcap_currentIndexChanged(int index);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::SettingsNetwork *ui;
|
Ui::SettingsNetwork *ui;
|
||||||
int machineId = 0;
|
int machineId = 0;
|
||||||
|
Reference in New Issue
Block a user