aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCustomQuery.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-11-30 02:24:42 +0000
committerrowanbeentje <rowan@beent.je>2010-11-30 02:24:42 +0000
commitb4a5f241c7a6adfdf1b8f4afb94f8d8c57a5c0a9 (patch)
treef1f58eb63be0f13a653b9ecd0174264e0707ffa6 /Source/SPCustomQuery.m
parentcc2e00c656a34d4c472a25f929282c8fc63d0174 (diff)
downloadsequelpro-b4a5f241c7a6adfdf1b8f4afb94f8d8c57a5c0a9.tar.gz
sequelpro-b4a5f241c7a6adfdf1b8f4afb94f8d8c57a5c0a9.tar.bz2
sequelpro-b4a5f241c7a6adfdf1b8f4afb94f8d8c57a5c0a9.zip
- Rework insertCommonPrefix to insertAutocompletePlaceholder, implementing a more Mac-like behaviour: insert a faded placeholder for the currently selected autocomplete item.
- Update the autocomplete placeholder when the autocomplete dropdown selection is changed - Clean up methods for removing placeholders, and ensure the placeholder is always removed (fixes issues with pasting with a placeholder visible, etc) - When the Help window is closed, switch off AutoHelp - this will aid in supporting those users who accidentally switch on AutoHelp and then can't figure out how to switch it off, resulting in returning windows.
Diffstat (limited to 'Source/SPCustomQuery.m')
-rw-r--r--Source/SPCustomQuery.m16
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