mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
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:
parent
7b2f9f74b4
commit
2a1b4c2d92
1 changed files with 2 additions and 1 deletions
|
@ -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."),
|
||||
|
|
Loading…
Reference in a new issue