]> git.saurik.com Git - cydia.git/blobdiff - CyteKit/WebViewController.mm
Added Swedish.lproj from Tommy (SwirlySpace, AB).
[cydia.git] / CyteKit / WebViewController.mm
index 03f0b95b2ab3acbf66a8c35a4a68797aa9963e58..520faa254bfe5c4257ffa88d62dbc0a7b73c86ac 100644 (file)
@@ -25,6 +25,9 @@ extern NSString * const kCAFilterNearest;
 #include <WebKit/DOMHTMLBodyElement.h>
 #include <WebKit/DOMRGBColor.h>
 
+#include <dlfcn.h>
+#include <objc/runtime.h>
+
 #define ForSaurik 0
 #define DefaultTimeout_ 120.0
 
@@ -138,9 +141,6 @@ float CYScrollViewDecelerationRateNormal;
     NSLog(@"[CyteWebViewController dealloc]");
 #endif
 
-    [webview_ setDelegate:nil];
-    [indirect_ setDelegate:nil];
-
     if ([loading_ count] != 0)
         [delegate_ releaseNetworkActivityIndicator];
 
@@ -525,6 +525,8 @@ float CYScrollViewDecelerationRateNormal;
         style_ = nil;
         function_ = nil;
 
+        allowsNavigationAction_ = true;
+
         stage2_ = stage1_;
         stage1_ = nil;
 
@@ -919,7 +921,7 @@ float CYScrollViewDecelerationRateNormal;
 }
 
 - (void) dispatchEvent:(NSString *)event {
-    [webview_ dispatchEvent:event];
+    [(CyteWebView *) webview_ dispatchEvent:event];
 }
 
 - (bool) hidesNavigationBar {