Browse Source

Removing unnecessary length check.

v1.4.1
Abhishek Banthia 8 years ago
parent
commit
2a9e3e797c
  1. BIN
      Clocker.xcodeproj/project.xcworkspace/xcuserdata/abhishekbanthia.xcuserdatad/UserInterfaceState.xcuserstate
  2. 11
      Clocker/Preferences/CLPreferencesViewController.m

BIN
Clocker.xcodeproj/project.xcworkspace/xcuserdata/abhishekbanthia.xcuserdatad/UserInterfaceState.xcuserstate generated

Binary file not shown.

11
Clocker/Preferences/CLPreferencesViewController.m

@ -546,14 +546,13 @@ NSString *const CLTryAgainMessage = @"Try again, maybe?";
- (IBAction)filterTimezoneArray:(id)sender
{
if (self.searchField.stringValue.length > 0)
{
NSPredicate *predicate = [NSPredicate predicateWithFormat:CLSearchPredicateKey, self.searchField.stringValue];
NSPredicate *predicate = [NSPredicate predicateWithFormat:CLSearchPredicateKey, self.searchField.stringValue];
self.timeZoneFilteredArray = [NSMutableArray arrayWithArray:[self.timeZoneArray filteredArrayUsingPredicate:predicate]];
self.timeZoneFilteredArray = [NSMutableArray arrayWithArray:[self.timeZoneArray filteredArrayUsingPredicate:predicate]];
[self.availableTimezoneTableView reloadData];
}
[self.availableTimezoneTableView reloadData];
}

Loading…
Cancel
Save