[PC-BSD Commits] r620 - pcbsd/trunk/NetworkTray

svn at pcbsd.org svn at pcbsd.org
Thu Aug 23 14:16:24 PDT 2007


Author: kris
Date: 2007-08-23 14:16:24 -0700 (Thu, 23 Aug 2007)
New Revision: 620

Modified:
   pcbsd/trunk/NetworkTray/NetworkTray.cpp
Log:

Changed double-click action to open network configuration tool



Modified: pcbsd/trunk/NetworkTray/NetworkTray.cpp
===================================================================
--- pcbsd/trunk/NetworkTray/NetworkTray.cpp	2007-08-23 20:58:39 UTC (rev 619)
+++ pcbsd/trunk/NetworkTray/NetworkTray.cpp	2007-08-23 21:16:24 UTC (rev 620)
@@ -340,18 +340,10 @@
 
 void  NetworkTray::openConfigDlg() {
 
-	if ( DeviceType == "Ethernet" )
-	{
-		   QProcess  process(QStringList::split(' ', "/usr/local/bin/kdesu --noignorebutton -d  /PCBSD/networkmanager/bin/ethernetconfig " + DeviceName));
-   		   if(!process.start())
+	QProcess  process(QStringList::split(' ', "kcmshell pcbsdnetwork"));
+   	   if(!process.start())
       		   KMessageBox::error(this,  tr("Can not start network configuration utility."));
-	} else {
-		   QProcess  process(QStringList::split(' ', "/usr/local/bin/kdesu --noignorebutton -d  /PCBSD/networkmanager/bin/wificonfig " + DeviceName));
-   		   if(!process.start())
-      		   KMessageBox::error(this,  tr("Can not start network configuration utility."));
-	}
 
-
 }
 
 void  NetworkTray::displayTooltip() {



More information about the Commits mailing list