Fix for NSHost argument specifying local host.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13512 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-04-19 05:54:35 +00:00
parent 04a7c6ae90
commit 61ab92f40f
2 changed files with 7 additions and 2 deletions

View file

@ -1,9 +1,13 @@
2002-04-19 Richard Frith-Macdonald <rfm@gnu.org>
* Tools/gpbs.m: If given -NSHost specification for the current host,
ignore it and use the standard name.
2002-04-18 Ludovic Marcotte <ludovic@Sophos.ca>
* Source/NSOutlineView.m and Headers/gnustep/gui/NSOutlineView.h:
Fixed some issues with the delegate methods.
Thu Apr 18 11:14:22 2002 Nicola Pero <n.pero@mi.flashnet.it>
* Headers/gnustep/gui/AppKitDefines.h (APPKIT_DECLARE): Updated

View file

@ -1130,7 +1130,8 @@ main(int argc, char** argv, char **env)
object: (id)conn];
hostname = [[NSUserDefaults standardUserDefaults] stringForKey: @"NSHost"];
if ([hostname length] == 0)
if ([hostname length] == 0
|| [[NSHost hostWithName: hostname] isEqual: [NSHost currentHost]] == YES)
{
if ([conn registerName: PBSNAME] == NO)
{