From 719d6c2f7d9313210e285eb92e80b77606a28493 Mon Sep 17 00:00:00 2001 From: "Dustin L. Howett" Date: Tue, 5 Oct 2010 18:07:13 -0400 Subject: [PATCH] Fix the default custom button behaviour for commercial packages. My understanding of the previous system was flawed enough to cause this- now, the custom button's behaviour is in _customButtonClicked, and the default customButtonClicked calls it instead of reloadButtonClicked. This is based on the original {_,__}rightButtonClicked methods. --- UICaboodle/BrowserView.mm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm index 1615795d..50c31e45 100644 --- a/UICaboodle/BrowserView.mm +++ b/UICaboodle/BrowserView.mm @@ -1592,13 +1592,17 @@ static Class $UIWebBrowserView; [self reloadURL]; } +- (void) _customButtonClicked { + [self reloadButtonClicked]; +} + - (void) customButtonClicked { #if !AlwaysReload if (function_ != nil) [self callFunction:function_]; else #endif - [self reloadButtonClicked]; + [self _customButtonClicked]; } - (void) setPageActive:(BOOL)active { -- 2.45.2