Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ensure that last update check is a valid NSDate - fixes #580

  • Loading branch information...
commit c854861415b944dadee92142da13e21a1dcd30ca 1 parent d8a9488
@skurfer authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 Quicksilver/Code-App/QSUpdateController.m
View
4 Quicksilver/Code-App/QSUpdateController.m
@@ -39,6 +39,10 @@ - (void)setUpdateTimer {
NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
if (DEVELOPMENTVERSION ? ![defaults boolForKey:@"QSPreventAutomaticUpdate"] : [defaults boolForKey:kCheckForUpdates]) {
NSDate *lastCheck = [defaults objectForKey:kLastUpdateCheck];
+ // leaving this `nil` can cause Quicksilver to hang if it starts very soon after login
+ if (!lastCheck) {
+ lastCheck = [NSDate date];
+ }
int frequency = [defaults integerForKey:kCheckForUpdateFrequency];
int versionType = [defaults integerForKey:@"QSUpdateReleaseLevel"];
// if (DEVELOPMENTVERSION && frequency>7)
Please sign in to comment.
Something went wrong with that request. Please try again.