Added check for connection to NSFirst (not allowed).

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@17828 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2003-10-13 04:14:46 +00:00
parent 7b2f9f74b4
commit 2a1b4c2d92

View file

@ -1051,7 +1051,8 @@ selectCellWithString: (NSString*)title
- (void) ok: (id)sender
{
if([currentConnector destination] == nil)
id first = [[(id<IB>)NSApp activeDocument] objectForName: @"NSFirst"];
if([currentConnector destination] == nil || [currentConnector destination] == first)
{
NSRunAlertPanel(_(@"Problem making connection"),
_(@"Please select a valid destination."),