diff --git a/src/qt/qt_settingsnetwork.cpp b/src/qt/qt_settingsnetwork.cpp index 290fea43b..98b1ac486 100644 --- a/src/qt/qt_settingsnetwork.cpp +++ b/src/qt/qt_settingsnetwork.cpp @@ -127,3 +127,13 @@ void SettingsNetwork::on_pushButtonConfigure_clicked() { DeviceConfig::ConfigureDevice(network_card_getdevice(ui->comboBoxAdapter->currentData().toInt()), 0, qobject_cast(Settings::settings)); } + +void SettingsNetwork::on_comboBoxPcap_currentIndexChanged(int index) +{ + if (index < 0) { + return; + } + + enableElements(ui); +} + diff --git a/src/qt/qt_settingsnetwork.hpp b/src/qt/qt_settingsnetwork.hpp index f17eb98f1..b473ee3df 100644 --- a/src/qt/qt_settingsnetwork.hpp +++ b/src/qt/qt_settingsnetwork.hpp @@ -25,6 +25,8 @@ private slots: void on_comboBoxAdapter_currentIndexChanged(int index); void on_comboBoxNetwork_currentIndexChanged(int index); + void on_comboBoxPcap_currentIndexChanged(int index); + private: Ui::SettingsNetwork *ui; int machineId = 0;