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

svn at pcbsd.org svn at pcbsd.org
Mon Apr 16 07:36:33 PDT 2012


Author: kenmoore
Date: 2012-04-16 14:36:33 +0000 (Mon, 16 Apr 2012)
New Revision: 16430

Modified:
   pcbsd/current/src-qt4/pc-netmanager/src/wificonfig/wificonfigwidgetbase.cpp
Log:
Fix the wireless GUI to not display empty ssid entry points



Modified: pcbsd/current/src-qt4/pc-netmanager/src/wificonfig/wificonfigwidgetbase.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-netmanager/src/wificonfig/wificonfigwidgetbase.cpp	2012-04-16 14:22:56 UTC (rev 16429)
+++ pcbsd/current/src-qt4/pc-netmanager/src/wificonfig/wificonfigwidgetbase.cpp	2012-04-16 14:36:33 UTC (rev 16430)
@@ -320,6 +320,7 @@
     for(int i=1; i<ifconfout.size(); i++){    //Skip the header line by starting at 1
       ifline = NetworkInterface::parseWifiScanLine(ifconfout[i],true); //get a single line
       //save the info for this wifi
+      //qDebug() << "ifconfig run";
       ssid = ifline[0];
       strength = ifline[4];
       //determine the icon based on if there is security encryption
@@ -329,6 +330,10 @@
       }else{
 	FileLoad = ":object-locked.png";
       }
+      //qDebug() << "ssid check";
+      //Make sure we do not display blank ssid entry points
+      if( !ssid.isEmpty() ){
+
       // qDebug()<<"Checking for duplicate SSID's";
       bool duplicateSSID = FALSE;
       int dupRow;
@@ -354,7 +359,8 @@
           //qDebug() << strength << oldStrength;
           listNewWifi->item(dupRow)->setText( ssid+" (signal: "+strength+")" );
 	}
-      } 
+      }
+      } //End of check for empty SSID entry points 
     }
     
     if ( foundItem == 1 ){



More information about the Commits mailing list