]> git.saurik.com Git - cydia.git/commitdiff
-[BrowserController applyRightButton] must be used from the main thread.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 18 Feb 2011 09:05:05 +0000 (01:05 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 18 Feb 2011 09:28:32 +0000 (01:28 -0800)
UICaboodle/BrowserView.mm

index 3450e5e8d8802aa62f211cc4623439b19af598c4..00e1814ed96feefca1aac41a1aad626b31b3fbe1 100644 (file)
@@ -590,7 +590,7 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se
     else
         function_ = [function retain];
 
-    [self applyRightButton];
+    [self performSelectorOnMainThread:@selector(applyRightButton) withObject:nil waitUntilDone:NO];
 }
 
 - (void) setButtonTitle:(NSString *)button withStyle:(NSString *)style toFunction:(id)function {
@@ -615,7 +615,7 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se
     else
         function_ = [function retain];
 
-    [self applyRightButton];
+    [self performSelectorOnMainThread:@selector(applyRightButton) withObject:nil waitUntilDone:NO];
 }
 
 - (void) setPopupHook:(id)function {