[mythtv] Patch for MythTV CVS

Matthew Mohan mamohan at engmail.uwaterloo.ca
Mon Feb 17 01:24:34 EST 2003


This adds case-insensitive postal code entry. 

diff -u -r1.22 videosource.h
--- libs/libmythtv/videosource.h        16 Feb 2003 19:25:37 -0000      1.22
+++ libs/libmythtv/videosource.h        17 Feb 2003 06:23:36 -0000
@@ -79,7 +79,7 @@
 protected slots:
      void fillProviderSelections(const QString& maybePostalCode) {
          if (QRegExp("\\d{5}").exactMatch(maybePostalCode) ||
-             QRegExp("[a-z]\\d[a-z]\\d[a-z]\\d").exactMatch(maybePostalCode))
+            
QRegExp("[a-zA-Z]\\d[a-zA-Z]\\d[a-zA-Z]\\d").exactMatch(maybePostalCode))
                  provider->fillSelections(maybePostalCode);
      }

----------------------------------------
This mail sent through www.mywaterloo.ca


More information about the mythtv-dev mailing list