[PC-BSD Commits] r7191 - in pcbsd: current/SoftwareManager stable/SoftwareManager

svn at pcbsd.org svn at pcbsd.org
Tue Jul 13 07:22:06 PDT 2010


Author: kris
Date: 2010-07-13 07:22:06 -0700 (Tue, 13 Jul 2010)
New Revision: 7191

Modified:
   pcbsd/current/SoftwareManager/softmanager-sysupdate.cpp
   pcbsd/stable/SoftwareManager/softmanager-sysupdate.cpp
Log:

Update to not use modal error box when we can't reach the update server



Modified: pcbsd/current/SoftwareManager/softmanager-sysupdate.cpp
===================================================================
--- pcbsd/current/SoftwareManager/softmanager-sysupdate.cpp	2010-07-13 14:03:51 UTC (rev 7190)
+++ pcbsd/current/SoftwareManager/softmanager-sysupdate.cpp	2010-07-13 14:22:06 UTC (rev 7191)
@@ -237,7 +237,8 @@
   // Check to see if the update download was successful and warn if not
   if ( sysFetchJob->error() != 0 && sysFetchJob->error() != 101 )
   {
-     QMessageBox::warning( 0, tr("Checking for updates failed!"), sysFetchJob->errorString(), QMessageBox::Ok );
+    QString newMsg = "<font color=\"#ff0000\">" + tr("Checking for updates failed!") + "</font>";
+    textSysUpdatesLabel->setText(newMsg);
     args << "NONE";
   } else {
     // Add the patchdata URL

Modified: pcbsd/stable/SoftwareManager/softmanager-sysupdate.cpp
===================================================================
--- pcbsd/stable/SoftwareManager/softmanager-sysupdate.cpp	2010-07-13 14:03:51 UTC (rev 7190)
+++ pcbsd/stable/SoftwareManager/softmanager-sysupdate.cpp	2010-07-13 14:22:06 UTC (rev 7191)
@@ -237,7 +237,8 @@
   // Check to see if the update download was successful and warn if not
   if ( sysFetchJob->error() != 0 && sysFetchJob->error() != 101 )
   {
-     QMessageBox::warning( 0, tr("Checking for updates failed!"), sysFetchJob->errorString(), QMessageBox::Ok );
+    QString newMsg = "<font color=\"#ff0000\">" + tr("Checking for updates failed!") + "</font>";
+    textSysUpdatesLabel->setText(newMsg);
     args << "NONE";
   } else {
     // Add the patchdata URL



More information about the Commits mailing list