Slightly different behaviour for opening URLs. 1.0.4b2
authorstefan
Tue, 19 Oct 2010 12:26:25 -0400
changeset 165 9983d250691ae5d2d104e607c0069dc4b90683b6
parent 164 b23025925ffac38231202273ed6c535126fd1a35
child 166 b3a15f19c45335d68a680a72f92858ab4e6acb35
push id107
push userstefan@arentz.ca
push dateTue, 19 Oct 2010 16:26:33 +0000
Slightly different behaviour for opening URLs.
Sources/UserInterface/WebPageController.m
--- a/Sources/UserInterface/WebPageController.m
+++ b/Sources/UserInterface/WebPageController.m
@@ -609,17 +609,17 @@ static BOOL IsSafariURL(NSString* url)
 /**
  * Open the specified URL. Based on the type of URL and the user's settings, the URL is either
  * opened in the in-app browser, in a native app or in Safari.
  */
 
 + (void) openURL: (NSString*) destination withTitle: (NSString*) title
 {
 	NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
-	if (([defaults boolForKey: @"useSafari"] && IsSafariURL(destination)) || ([defaults boolForKey: @"useNativeApps"] && IsNativeAppURL(destination))) {
+	if (([defaults boolForKey: @"useSafari"] /* && IsSafariURL(destination) */) || ([defaults boolForKey: @"useNativeApps"] && IsNativeAppURL(destination))) {
 		[[UIApplication sharedApplication] openURL: [NSURL URLWithUnicodeString: destination]];
 	} else {
 		WeaveAppDelegate* appDelegate = (WeaveAppDelegate*) [[UIApplication sharedApplication] delegate];
 		WebPageController* web = [appDelegate webController];
 		[TapActionController slideWebBrowserIn];
 		[web loadLocation: destination withTitle: title];
 	}
 }