Network settings: Change the one reference to promiscBox to boxPromisc.

This commit is contained in:
OBattler
2025-08-03 19:52:08 +02:00
parent 413bf3dbe8
commit 2f3cee1806

View File

@@ -358,7 +358,7 @@ SettingsNetwork::onCurrentMachineChanged(int machineId)
#endif
#ifdef USE_NETSWITCH
} else if (net_cards_conf[i].net_type == NET_TYPE_NMSWITCH) {
auto *promisc_value = findChild<QCheckBox *>(QString("promiscBox%1").arg(i + 1));
auto *promisc_value = findChild<QCheckBox *>(QString("boxPromisc%1").arg(i + 1));
promisc_value->setCheckState(net_cards_conf[i].promisc_mode == 1 ? Qt::CheckState::Checked : Qt::CheckState::Unchecked);
auto *switch_group_value = findChild<QSpinBox *>(QString("switchSpinner%1").arg(i + 1));
switch_group_value->setValue(net_cards_conf[i].switch_group + 1);