[PC-BSD Commits] r18783 - pcbsd/current/src-qt4/pc-netmanager/src/wificonfig
svn at pcbsd.org
svn at pcbsd.org
Tue Sep 4 07:54:08 PDT 2012
Author: kris
Date: 2012-09-04 14:54:08 +0000 (Tue, 04 Sep 2012)
New Revision: 18783
Modified:
pcbsd/current/src-qt4/pc-netmanager/src/wificonfig/wepconfig.cpp
Log:
Add test of network WEP key, to see if its HEX and warn the user
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:51:41 UTC (rev 18782)
+++ pcbsd/current/src-qt4/pc-netmanager/src/wificonfig/wepconfig.cpp 2012-09-04 14:54:08 UTC (rev 18783)
@@ -43,6 +43,12 @@
void wepConfig::slotClose()
{
+ bool ok;
+ lineKey->text().toInt(&ok, 16);
+ 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 ( lineKey->text() != lineKey2->text() )
{
QMessageBox::warning( this, "Network Key Error", "Error: The entered network keys do not match!\n" );
More information about the Commits
mailing list