[PC-BSD Commits] r12595 - pcbsd/current/src-qt4/pc-systemupdatertray

svn at pcbsd.org svn at pcbsd.org
Tue Sep 6 02:26:37 PDT 2011


Author: yurkis
Date: 2011-09-06 02:26:37 -0700 (Tue, 06 Sep 2011)
New Revision: 12595

Modified:
   pcbsd/current/src-qt4/pc-systemupdatertray/UpdaterTray.cpp
Log:
Launch AppCafe on icon click when pbi updates are aviable and system updates are not.

Modified: pcbsd/current/src-qt4/pc-systemupdatertray/UpdaterTray.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-systemupdatertray/UpdaterTray.cpp	2011-09-06 09:14:52 UTC (rev 12594)
+++ pcbsd/current/src-qt4/pc-systemupdatertray/UpdaterTray.cpp	2011-09-06 09:26:37 UTC (rev 12595)
@@ -454,7 +454,14 @@
 
 void UpdaterTray::slotTrayActivated(QSystemTrayIcon::ActivationReason reason) {
    if(reason == QSystemTrayIcon::Trigger) {
-      slotOpenUpdateManager();
+       if ( (programstatus != SYSTEM_UPDATE_AVAIL) &&  (pbistatus == PBI_UPDATES_AVAIL) )
+       {
+            slotOpenSoftwareManager();
+       }
+       else
+       {
+            slotOpenUpdateManager();
+       }//else
    }
 }
 



More information about the Commits mailing list