mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 16:10:48 +00:00
Merge branch 'master' of github.com:gnustep/libs-gui
This commit is contained in:
commit
a3d73cd3fb
1 changed files with 1 additions and 8 deletions
|
@ -59,7 +59,6 @@
|
|||
#import "AppKit/NSTextField.h"
|
||||
#import "AppKit/NSWindow.h"
|
||||
#import "GSGuiPrivate.h"
|
||||
#import "GNUstepBase/NSDebug+GNUstepBase.h"
|
||||
#import "GNUstepGUI/GSServicesManager.h"
|
||||
|
||||
// prototype for function to create name for server
|
||||
|
@ -106,12 +105,6 @@ extern NSString *GSSpellServerName(NSString *checkerDictionary, NSString *langua
|
|||
@implementation GSServicesManager(NSSpellCheckerMethods)
|
||||
- (id)_launchSpellCheckerForLanguage: (NSString *)language
|
||||
{
|
||||
if ([[NSUserDefaults standardUserDefaults] boolForKey: @"GSDisableSpellCheckerServer"])
|
||||
{
|
||||
GSOnceMLog(@"WARNING: spell checker disabled - reset 'GSDisableSpellCheckerServer' to NO in defaults to re-enable");
|
||||
return nil;
|
||||
}
|
||||
|
||||
id<NSSpellServerPrivateProtocol> proxy = nil;
|
||||
NSDictionary *spellCheckers = [_allServices objectForKey: @"BySpell"];
|
||||
NSDictionary *checkerDictionary = [spellCheckers objectForKey: language];
|
||||
|
@ -138,7 +131,7 @@ extern NSString *GSSpellServerName(NSString *checkerDictionary, NSString *langua
|
|||
[(NSDistantObject *)proxy setProtocolForProxy:
|
||||
@protocol(NSSpellServerPrivateProtocol)];
|
||||
}
|
||||
|
||||
|
||||
return proxy;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue