summaryrefslogtreecommitdiff
path: root/UICaboodle
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-02-18 01:05:05 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-02-18 01:28:32 -0800
commit70a9ff4e3897e7b63796d87b545e2bad95caef79 (patch)
tree227ac0c72b367035b73725717d2184357ba3ace9 /UICaboodle
parentb6494e701973b6ca43d758b251d4864878ecba27 (diff)
-[BrowserController applyRightButton] must be used from the main thread.
Diffstat (limited to 'UICaboodle')
-rw-r--r--UICaboodle/BrowserView.mm4
1 files 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 {