[PC-BSD Commits] r9860 - pcbsd/current/src-qt4/pc-netmanager/src/NetworkTray

svn at pcbsd.org svn at pcbsd.org
Thu Mar 31 15:22:21 PDT 2011


Author: kris
Date: 2011-03-31 15:22:21 -0700 (Thu, 31 Mar 2011)
New Revision: 9860

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

Fixed double-clicking on the tray icon launching the network manager



Modified: pcbsd/current/src-qt4/pc-netmanager/src/NetworkTray/NetworkTray.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-netmanager/src/NetworkTray/NetworkTray.cpp	2011-03-31 22:18:31 UTC (rev 9859)
+++ pcbsd/current/src-qt4/pc-netmanager/src/NetworkTray/NetworkTray.cpp	2011-03-31 22:22:21 UTC (rev 9860)
@@ -44,9 +44,6 @@
   // Load the icons we'll be using into memory
   loadIcons();
 
-  // Connect our double-click slot
-  connect(this, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), this, SLOT(slotTrayActivated(QSystemTrayIcon::ActivationReason)));
-
   QString tmp;
   QIcon Icon;
   DeviceName = Device;
@@ -103,7 +100,9 @@
   trayIcon->setContextMenu(trayIconMenu);
   trayIcon->show();
 
-  
+  // Connect our double-click slot
+  connect(trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), this, SLOT(slotTrayActivated(QSystemTrayIcon::ActivationReason)));
+
   // Create the tooltip popup now
   displayTooltip();
 



More information about the Commits mailing list