[PC-BSD Commits] r15668 - pcbsd/current/src-qt4/pc-systemupdatertray
svn at pcbsd.org
svn at pcbsd.org
Thu Mar 1 10:11:36 PST 2012
Author: kris
Date: 2012-03-01 18:11:36 +0000 (Thu, 01 Mar 2012)
New Revision: 15668
Modified:
pcbsd/current/src-qt4/pc-systemupdatertray/UpdaterTray.cpp
pcbsd/current/src-qt4/pc-systemupdatertray/UpdaterTray.h
Log:
Open to the installed tab when PBI updates are available
Modified: pcbsd/current/src-qt4/pc-systemupdatertray/UpdaterTray.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-systemupdatertray/UpdaterTray.cpp 2012-03-01 18:08:48 UTC (rev 15667)
+++ pcbsd/current/src-qt4/pc-systemupdatertray/UpdaterTray.cpp 2012-03-01 18:11:36 UTC (rev 15668)
@@ -460,7 +460,7 @@
if(reason == QSystemTrayIcon::Trigger) {
if ( (programstatus != SYSTEM_UPDATE_AVAIL) && (pbistatus == PBI_UPDATES_AVAIL) )
{
- slotOpenSoftwareManager();
+ slotOpenSoftwareManagerInstalled();
}
else
{
@@ -479,6 +479,11 @@
system ("(pc-softwaremanager) &");
}
+void UpdaterTray::slotOpenSoftwareManagerInstalled(void)
+{
+ system ("(pc-softwaremanager -installed) &");
+}
+
// The user wants to quit the application
void UpdaterTray::slotQuitTray() {
exit(0);
@@ -645,7 +650,7 @@
{
disconnect(trayIcon, SIGNAL(messageClicked()), 0, 0 );
trayIcon->showMessage(tr("Software Updates Available"), tr("Software updates are available. Click here to install them!"), QSystemTrayIcon::Warning);
- connect( trayIcon, SIGNAL(messageClicked()), this, SLOT(slotOpenSoftwareManager()) );
+ connect( trayIcon, SIGNAL(messageClicked()), this, SLOT(slotOpenSoftwareManagerInstalled()) );
}
void UpdaterTray::slotSingleInstance()
Modified: pcbsd/current/src-qt4/pc-systemupdatertray/UpdaterTray.h
===================================================================
--- pcbsd/current/src-qt4/pc-systemupdatertray/UpdaterTray.h 2012-03-01 18:08:48 UTC (rev 15667)
+++ pcbsd/current/src-qt4/pc-systemupdatertray/UpdaterTray.h 2012-03-01 18:11:36 UTC (rev 15668)
@@ -37,6 +37,7 @@
void slotOpenConfigDlg();
void slotOpenUpdateManager();
void slotOpenSoftwareManager();
+ void slotOpenSoftwareManagerInstalled();
void slotPBICheckUpdate();
void slotPopulatePBIList();
void slotQuitTray();
More information about the Commits
mailing list