]> git.pld-linux.org Git - packages/aqemu.git/commitdiff
- fixed IP_Address validator
authorKarol Krenski <charles@pld-linux.org>
Sun, 15 Mar 2009 10:46:20 +0000 (10:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    aqemu-regex.patch -> 1.1

aqemu-regex.patch [new file with mode: 0644]

diff --git a/aqemu-regex.patch b/aqemu-regex.patch
new file mode 100644 (file)
index 0000000..6d6ca91
--- /dev/null
@@ -0,0 +1,11 @@
+--- aqemu-0.7/Main_Window.cpp.orig     2009-03-03 14:57:37.000000000 +0100
++++ aqemu-0.7/Main_Window.cpp  2009-03-15 01:16:19.000000000 +0100
+@@ -89,7 +89,7 @@
+       Check_Network_Card = true;
+       
+       // IP Address
+-      QRegExp rx( "^([1-9]|[1-9][\\d]|[1][\\d][\\d]|2[0-4][\\d]|25[0-5])(\\.([1-9]|[1-9][\\d]|[1][\\d][\\d]|2[0-4][\\d]|25[0-5])){3}$" );
++      QRegExp rx( "^([1-9]|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])(\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])){3}$" );
+       QValidator *validator = new QRegExpValidator( rx, this );
+       ui.Edit_IP_Address->setValidator( validator );
+       
This page took 0.071794 seconds and 4 git commands to generate.