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

svn at pcbsd.org svn at pcbsd.org
Mon Jul 2 11:40:44 PDT 2012


Author: kris
Date: 2012-07-02 18:40:43 +0000 (Mon, 02 Jul 2012)
New Revision: 17574

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

Use QFile instead to check if update is waiting



Modified: pcbsd/current/src-qt4/pc-updategui/mainWin.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-updategui/mainWin.cpp	2012-07-02 18:37:13 UTC (rev 17573)
+++ pcbsd/current/src-qt4/pc-updategui/mainWin.cpp	2012-07-02 18:40:43 UTC (rev 17574)
@@ -374,9 +374,7 @@
   listViewUpdates->clear();
 
   // Check if the system has an upgrade available
-  QDir chk;
-  chk.setPath("/usr/local/tmp/update-stagedir");
-  if ( chk.exists() ) {
+  if ( QFile::exists("/usr/local/tmp/update-stagedir/doupdate.sh") ) {
     textLabel->setText(tr("A system upgrade is waiting to be installed. Please reboot to begin!"));
     return;
   }



More information about the Commits mailing list