[PC-BSD Commits] r1423 - pcbsd/trunk/SystemUpdater
svn at pcbsd.org
svn at pcbsd.org
Thu Feb 21 11:05:50 PST 2008
Author: kris
Date: 2008-02-21 11:05:50 -0800 (Thu, 21 Feb 2008)
New Revision: 1423
Modified:
pcbsd/trunk/SystemUpdater/UpdaterTray.cpp
Log:
Fixed up a crash when running the scheduled online update check
Modified: pcbsd/trunk/SystemUpdater/UpdaterTray.cpp
===================================================================
--- pcbsd/trunk/SystemUpdater/UpdaterTray.cpp 2008-02-21 18:04:03 UTC (rev 1422)
+++ pcbsd/trunk/SystemUpdater/UpdaterTray.cpp 2008-02-21 19:05:50 UTC (rev 1423)
@@ -24,8 +24,8 @@
-/* Update interval in ms - Every 24 hours */
-#define UPDATE_MSEC 1000 * 60 * 24
+/* Update interval in ms - Every 12 hours */
+#define UPDATE_MSEC 1000 * 60 * 60 * 12
@@ -122,6 +122,9 @@
sysTimer = new QTimer(this);
pbiTimer = new QTimer(this);
+ connect( sysTimer, SIGNAL(timeout()), this, SLOT(slotScheduledSystemCheck()) );
+ connect( pbiTimer, SIGNAL(timeout()), this, SLOT(slotScheduledPBICheck()) );
+
// Create our SystemUpdaterDialog item
SystemUpdaterDialog = new systemUpdater();
SystemUpdaterDialog->programInit();
@@ -208,20 +211,10 @@
if ( checkSysUpdatesFrequently == TRUE) {
// Set our timer to check again in 24 hours.
- //QTimer::singleShot(UPDATE_MSEC, this, SLOT(slotScheduledSystemCheck()));
- if ( sysTimer->isActive() )
- {
- sysTimer->stop();
- }
-
- connect( sysTimer, SIGNAL(timeout()), this, SLOT(slotScheduledSystemCheck()) );
sysTimer->start( UPDATE_MSEC, TRUE );
- }
slotStartUpdateCheck();
-
-
-
+ }
}
@@ -1570,13 +1563,6 @@
{
if ( checkPBIUpdatesFrequently == TRUE) {
// Set our timer to check again in 24 hours.
- //QTimer::singleShot(UPDATE_MSEC, this, SLOT(slotScheduledPBICheck()));
- if ( pbiTimer->isActive() )
- {
- pbiTimer->stop();
- }
-
- connect( pbiTimer, SIGNAL(timeout()), this, SLOT(slotScheduledPBICheck()) );
pbiTimer->start( UPDATE_MSEC, TRUE );
}
More information about the Commits
mailing list