[PC-BSD Commits] r18784 - pcbsd/current/src-qt4/pc-netmanager/src/wificonfig

svn at pcbsd.org svn at pcbsd.org
Tue Sep 4 07:57:11 PDT 2012


Author: kris
Date: 2012-09-04 14:57:11 +0000 (Tue, 04 Sep 2012)
New Revision: 18784

Modified:
   pcbsd/current/src-qt4/pc-netmanager/src/wificonfig/wepconfig.cpp
Log:

And visa-versa, check hex keys to make sure they are valid



Modified: pcbsd/current/src-qt4/pc-netmanager/src/wificonfig/wepconfig.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-netmanager/src/wificonfig/wepconfig.cpp	2012-09-04 14:54:08 UTC (rev 18783)
+++ pcbsd/current/src-qt4/pc-netmanager/src/wificonfig/wepconfig.cpp	2012-09-04 14:57:11 UTC (rev 18784)
@@ -48,6 +48,11 @@
     if ( ok && ! radioHex->isChecked() )
        QMessageBox::warning( this, tr("Hex Key"), tr("Warning: The entered network is a valid hex key, but plain-text mode is enabled.") );
     
+    if ( ! ok && radioHex->isChecked() ) {
+       QMessageBox::warning( this, tr("Hex Key"), tr("Error: The specified key is not a valid hex key.") );
+       return;
+    }
+    
 
     if ( lineKey->text() != lineKey2->text() )
     {



More information about the Commits mailing list