[PC-BSD Commits] r21837 - pcbsd/current/src-qt4/pc-updategui

svn at pcbsd.org svn at pcbsd.org
Wed Mar 13 01:50:54 PDT 2013


Author: kris
Date: 2013-03-13 08:50:54 +0000 (Wed, 13 Mar 2013)
New Revision: 21837

Modified:
   pcbsd/current/src-qt4/pc-updategui/mainWin.cpp
Log:

When no system updates are available, and package updates are, switch
tab automatically



Modified: pcbsd/current/src-qt4/pc-updategui/mainWin.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-updategui/mainWin.cpp	2013-03-12 23:59:30 UTC (rev 21836)
+++ pcbsd/current/src-qt4/pc-updategui/mainWin.cpp	2013-03-13 08:50:54 UTC (rev 21837)
@@ -360,6 +360,7 @@
 
   textLabel->setText(tr("System updates available!"));
   groupUpdates->setTitle(tr("Available Updates"));
+  tabUpdates->setCurrentIndex(0);
   tabUpdates->setTabText(0, tr("System Updates (%1)").arg(listUpdates.count()));
 
   // Start parsing the updates and list whats available
@@ -554,6 +555,8 @@
   buttonRescanPkgs->setEnabled(true);
   pushUpdatePkgs->setEnabled(haveUpdates);
   if ( totPkgs > 0 ) {
+    if ( listUpdates.isEmpty() )
+      tabUpdates->setCurrentIndex(1);
     tabUpdates->setTabText(1, tr("Package Updates (%1)").arg(totPkgs));
     groupUpdatesPkgs->setTitle(tr("Available updates"));
   } else {



More information about the Commits mailing list