mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-03 06:59:58 +00:00
Fix IP validator error where the last octet produced an error if the value was higher than 199
This commit is contained in:
parent
32df83e55d
commit
06cf705501
1 changed files with 3 additions and 2 deletions
|
@ -185,8 +185,9 @@ void ConfigureMotionTouch::ConnectEvents() {
|
|||
}
|
||||
|
||||
void ConfigureMotionTouch::OnUDPAddServer() {
|
||||
QRegExp re(tr(R"re(^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4]"
|
||||
"[0-9]|[01]?[0-9][0-9]?)$)re")); // a valid ip address
|
||||
// Validator for IP address
|
||||
QRegExp re(QStringLiteral(
|
||||
R"re(^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$)re"));
|
||||
bool ok;
|
||||
QString port_text = ui->udp_port->text();
|
||||
QString server_text = ui->udp_server->text();
|
||||
|
|
Loading…
Reference in a new issue