From 159cde03be4e55faac470aa1007221fc6837e10f Mon Sep 17 00:00:00 2001 From: Abhishek Banthia Date: Fri, 12 May 2017 15:53:39 -0400 Subject: [PATCH] Strict tableview check. --- Clocker/Preferences/CLPreferencesViewController.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Clocker/Preferences/CLPreferencesViewController.m b/Clocker/Preferences/CLPreferencesViewController.m index 4bc7d2ad..74f1fe92 100644 --- a/Clocker/Preferences/CLPreferencesViewController.m +++ b/Clocker/Preferences/CLPreferencesViewController.m @@ -695,6 +695,10 @@ -(NSDragOperation)tableView:(NSTableView *)tableView -(void)tableView:(NSTableView *)tableView didClickTableColumn:(NSTableColumn *)tableColumn { + if ([[tableColumn identifier] isEqualToString:@"favouriteTimezone"]) { + return; + } + if (tableView == self.timezoneTableView) { static NSStringCompareOptions comparisonOptions = NSCaseInsensitiveSearch | NSNumericSearch | NSForcedOrderingSearch | NSWidthInsensitiveSearch; @@ -901,7 +905,8 @@ - (void)getTimeZoneForLatitude:(NSString *)latitude andLongitude:(NSString *)lon [operationObject save]; - [Answers logCustomEventWithName:@"New Place Added" customAttributes:@{@"Place Name" : filteredAddress , @"Timezone" : json[@"timeZoneId"]}]; + + [Answers logSearchWithQuery:filteredAddress customAttributes:@{@"Place Name" : filteredAddress , @"Timezone" : json[@"timeZoneId"]}]; }