[PC-BSD Commits] r2078 - pcbsd/trunk/NetworkManager

svn at pcbsd.org svn at pcbsd.org
Tue Jun 10 07:38:52 PDT 2008


Author: tim
Date: 2008-06-10 07:38:52 -0700 (Tue, 10 Jun 2008)
New Revision: 2078

Modified:
   pcbsd/trunk/NetworkManager/networkman.ui.h
Log:
Refactored for libpcbsd

Modified: pcbsd/trunk/NetworkManager/networkman.ui.h
===================================================================
--- pcbsd/trunk/NetworkManager/networkman.ui.h	2008-06-10 14:38:38 UTC (rev 2077)
+++ pcbsd/trunk/NetworkManager/networkman.ui.h	2008-06-10 14:38:52 UTC (rev 2078)
@@ -116,10 +116,8 @@
 
 QString NetworkMan::getNameForIdent( QString ident )
 {
-    uint pos = ident.find(QRegExp("[0-9]+$"));
-    QString devNum = ident.mid(pos);
-    ident.truncate(pos);
-    return Utils::sysctl("dev." + ident + "." + devNum + ".%desc");	
+    NetworkInterface ifr(ident);
+    return ifr.desc();
 }
 
 



More information about the Commits mailing list