diff options
Diffstat (limited to 'Source/SPCustomQuery.m')
-rw-r--r-- | Source/SPCustomQuery.m | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m index f590de42..415bf2fa 100644 --- a/Source/SPCustomQuery.m +++ b/Source/SPCustomQuery.m @@ -3126,6 +3126,22 @@ return webViewMenuItems; } +/** + * Detect when the help window is closed (manually) and disable autohelp to ensure it + * isn't reopened on keypresses. + */ +- (BOOL)windowShouldClose:(id)sender +{ + if (sender == helpWebViewWindow) { + [prefs setBool:NO forKey:SPCustomQueryUpdateAutoHelp]; + [prefs synchronize]; + [autohelpMenuItem setState:NSOffState]; + [textView setAutohelp:NO]; + } + + return YES; +} + #pragma mark - #pragma mark Query favorites manager delegate methods |