From: Jay Freeman (saurik) Date: Fri, 18 Feb 2011 09:05:05 +0000 (-0800) Subject: -[BrowserController applyRightButton] must be used from the main thread. X-Git-Tag: v1.1.0%b1~319 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/70a9ff4e3897e7b63796d87b545e2bad95caef79 -[BrowserController applyRightButton] must be used from the main thread. --- diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm index 3450e5e8..00e1814e 100644 --- a/UICaboodle/BrowserView.mm +++ b/UICaboodle/BrowserView.mm @@ -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 {