aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-05-01 22:59:46 +0000
committerBibiko <bibiko@eva.mpg.de>2009-05-01 22:59:46 +0000
commit9a13ed990249f73ef6d06afa15b93c3dce19b8c6 (patch)
tree589be64e3a911599d4761812bc25f2bc9f5272fc /Source
parent6e8b850c01e8f3aac45a3e5af2a37b247c38350f (diff)
downloadsequelpro-9a13ed990249f73ef6d06afa15b93c3dce19b8c6.tar.gz
sequelpro-9a13ed990249f73ef6d06afa15b93c3dce19b8c6.tar.bz2
sequelpro-9a13ed990249f73ef6d06afa15b93c3dce19b8c6.zip
• MySQL Help - simplified code for goBack/Forward buttons because it is supported in the helpWebView policy delegate method
Diffstat (limited to 'Source')
-rw-r--r--Source/CustomQuery.m10
1 files changed, 2 insertions, 8 deletions
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