Skip to content

Commit 4554320

Browse files
committed
Minor fixes
1 parent 6d6f561 commit 4554320

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

An Awesome Socks Proxy Manager.xcodeproj/project.pbxproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@
207207
653357E115B8B8BF0028A746 /* MainMenu.xib */,
208208
659201A815A75C6B000AB407 /* Supporting Files */,
209209
);
210-
name = "An Awesome Socks Proxy Manager";
211210
path = "An Awesome Socks Proxy Manager";
212211
sourceTree = "<group>";
213212
};
@@ -459,7 +458,7 @@
459458
GCC_WARN_UNINITIALIZED_AUTOS = YES;
460459
GCC_WARN_UNUSED_FUNCTION = YES;
461460
GCC_WARN_UNUSED_VARIABLE = YES;
462-
MACOSX_DEPLOYMENT_TARGET = 10.7;
461+
MACOSX_DEPLOYMENT_TARGET = 10.6;
463462
ONLY_ACTIVE_ARCH = YES;
464463
SDKROOT = macosx;
465464
};
@@ -488,7 +487,7 @@
488487
GCC_WARN_UNINITIALIZED_AUTOS = YES;
489488
GCC_WARN_UNUSED_FUNCTION = YES;
490489
GCC_WARN_UNUSED_VARIABLE = YES;
491-
MACOSX_DEPLOYMENT_TARGET = 10.7;
490+
MACOSX_DEPLOYMENT_TARGET = 10.6;
492491
SDKROOT = macosx;
493492
};
494493
name = Release;

An Awesome Socks Proxy Manager/SPHAppDelegate.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ - (void) menuNeedsUpdate:(NSMenu *)menu;
193193
}
194194
*/
195195

196-
managementMenuItem.tag = abs(managementMenuItem.tag) + managementTag;
196+
managementMenuItem.tag = labs(managementMenuItem.tag) + managementTag;
197197

198198
if (4 == (managementMenuItem.tag % managementTag)) {
199199
NSDictionary *proxyData = [self proxyDataFromIndex:aProxyMenuItem.tag];
@@ -536,7 +536,7 @@ - (BOOL)setProxyData:(NSDictionary *)proxyData forNetworkService:(SCNetworkServi
536536

537537
NSNumber *currentPort = [proxyDict valueForKey:(__bridge NSString*) kSCPropNetProxiesSOCKSPort];
538538

539-
if (![currentPort intValue] == [localPort_ intValue]) { // We are switching proxy, force enabled
539+
if (!([currentPort intValue] == [localPort_ intValue])) { // We are switching proxy, force enabled
540540

541541
enableFlag = [NSNumber numberWithInt:1];
542542

0 commit comments

Comments
 (0)