Revision: 5239
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5239&view=rev
Author:   hofman
Date:     2009-03-03 11:03:49 +0000 (Tue, 03 Mar 2009)

Log Message:
-----------
don't bother validating update check interval

Modified Paths:
--------------
    trunk/SKPreferenceController.m

Modified: trunk/SKPreferenceController.m
===================================================================
--- trunk/SKPreferenceController.m      2009-03-03 10:55:28 UTC (rev 5238)
+++ trunk/SKPreferenceController.m      2009-03-03 11:03:49 UTC (rev 5239)
@@ -318,28 +318,8 @@
 #pragma mark Private
 
 - (void)synchronizeUpdateInterval {
-    static NSIndexSet *updateIntervals = nil;
-    if (updateIntervals == nil) {
-        NSMutableIndexSet *intervals = [NSMutableIndexSet indexSet];
-        int i = [updateIntervalPopUpButton numberOfItems];
-        while (--i > 0)
-            [intervals addIndex:[[updateIntervalPopUpButton itemAtIndex:i] 
tag]];
-        updateIntervals = [intervals copy];
-    }
-    
-    unsigned int i = 0;
-    if ([[SUUpdater sharedUpdater] automaticallyChecksForUpdates]) {
-        i = [[SUUpdater sharedUpdater] updateCheckInterval];
-        if ([updateIntervals containsIndex:i] == NO) {
-            i = [updateIntervals indexGreaterThanIndex:i/2];
-            if (i == NSNotFound)
-                i = [updateIntervals lastIndex];
-            [[SUUpdater sharedUpdater] setUpdateCheckInterval:i];
-        }
-    }
-    
     [self willChangeValueForKey:@"updateInterval"];
-    updateInterval = i;
+    updateInterval = [[SUUpdater sharedUpdater] updateCheckInterval];
     [self didChangeValueForKey:@"updateInterval"];
 }
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to