Changeset 94697 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 22, 2022 11:50:41 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.cpp
r94675 r94697 17 17 18 18 /* Qt includes: */ 19 #include <QRegularExpression> 19 20 #include <QVBoxLayout> 20 21 … … 452 453 if (m_pEditorNetworkSettings->macAddress().size() >= 2) 453 454 { 454 QRegExp validator("^[0-9A-Fa-f][02468ACEace]"); 455 if (validator.indexIn(m_pEditorNetworkSettings->macAddress()) != 0) 455 if (m_pEditorNetworkSettings->macAddress().indexOf(QRegularExpression("^[0-9A-Fa-f][02468ACEace]")) != 0) 456 456 { 457 457 message.second << tr("The second digit in the MAC address may not be odd as only unicast addresses are allowed.");
Note:
See TracChangeset
for help on using the changeset viewer.