From 70a9ff4e3897e7b63796d87b545e2bad95caef79 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 18 Feb 2011 01:05:05 -0800 Subject: -[BrowserController applyRightButton] must be used from the main thread. --- UICaboodle/BrowserView.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm index 3450e5e..00e1814 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 { -- cgit v1.2.3