mirror of
https://github.com/86Box/86Box.git
synced 2025-01-23 17:52:01 -05:00
qt_settingsnetwork: Disable Configure button when network card has no configurable parameters
This commit is contained in:
parent
279cbdbf97
commit
f15f00e260
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ static void enableElements(Ui::SettingsNetwork *ui) {
|
|||
bool adaptersEnabled = netType == NET_TYPE_SLIRP ||
|
||||
(netType == NET_TYPE_PCAP && ui->comboBoxPcap->currentData().toInt() > 0);
|
||||
ui->comboBoxAdapter->setEnabled(adaptersEnabled);
|
||||
ui->pushButtonConfigure->setEnabled(adaptersEnabled && ui->comboBoxAdapter->currentIndex() > 0);
|
||||
ui->pushButtonConfigure->setEnabled(adaptersEnabled && ui->comboBoxAdapter->currentIndex() > 0 && network_card_has_config(ui->comboBoxAdapter->currentData().toInt()));
|
||||
}
|
||||
|
||||
SettingsNetwork::SettingsNetwork(QWidget *parent) :
|
||||
|
|
Loading…
Add table
Reference in a new issue