diff options
author | Guillermo Ignacio Enriquez Gutierrez <ignacio@jp.ibm.com> | 2015-08-25 07:41:36 +0900 |
---|---|---|
committer | Guillermo Ignacio Enriquez Gutierrez <ignacio@jp.ibm.com> | 2015-08-25 07:41:36 +0900 |
commit | 83322eaf2d9d5729485149d707bca9df7c6006b4 (patch) | |
tree | b659a501f8aa0636513bb3cadf65e60e7654685f /Source | |
parent | f4189a6cfc9af1d109f6467c24ec4839c20f64d3 (diff) | |
download | sequelpro-83322eaf2d9d5729485149d707bca9df7c6006b4.tar.gz sequelpro-83322eaf2d9d5729485149d707bca9df7c6006b4.tar.bz2 sequelpro-83322eaf2d9d5729485149d707bca9df7c6006b4.zip |
Correctly enable/disable item in help menu
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPTextView.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTextView.m b/Source/SPTextView.m index f9ec441e..e37b5939 100644 --- a/Source/SPTextView.m +++ b/Source/SPTextView.m @@ -3212,7 +3212,7 @@ static inline NSPoint SPPointOnLine(NSPoint a, NSPoint b, CGFloat t) { return NS [menuItem setTitle: NSLocalizedString(@"MySQL Help for Word", @"MySQL Help for Word")]; } NSUInteger stringSize = [self getRangeForCurrentWord].length; - return (stringSize || stringSize > 64); + return (0 < stringSize && stringSize < 65); // 1 ≤ stringSize ≤ 64 } // Enable Copy as RTF if something is selected if ([menuItem action] == @selector(copyAsRTF)) { |