From 9a13ed990249f73ef6d06afa15b93c3dce19b8c6 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Fri, 1 May 2009 22:59:46 +0000 Subject: =?UTF-8?q?=E2=80=A2=20MySQL=20Help=20-=20simplified=20code=20for?= =?UTF-8?q?=20goBack/Forward=20buttons=20because=20it=20is=20supported=20i?= =?UTF-8?q?n=20the=20helpWebView=20policy=20delegate=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/CustomQuery.m | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'Source') diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m index 755b980f..2289b561 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -1534,19 +1534,13 @@ traps enter key and switch([helpNavigator selectedSegment]) { case SP_HELP_GOBACK_BUTTON: - if([[helpWebView backForwardList] backListCount]) { - [self showHelpFor:[[[[helpWebView backForwardList] backItem] URLString] lastPathComponent] addToHistory:NO]; - [[helpWebView backForwardList] goBack]; - } + [helpWebView goBack]; break; case SP_HELP_SHOW_TOC_BUTTON: [self showHelpFor:SP_HELP_TOC_SEARCH_STRING addToHistory:YES]; break; case SP_HELP_GOFORWARD_BUTTON: - if([[helpWebView backForwardList] forwardListCount]) { - [self showHelpFor:[[[[helpWebView backForwardList] forwardItem] URLString] lastPathComponent] addToHistory:NO]; - [[helpWebView backForwardList] goForward]; - } + [helpWebView goForward]; break; } // validate goback and goforward buttons according history -- cgit v1.2.3