* GormCore/GormConnectionInspector.m (ok:): return on problem with making connection, don't mark document as edited; update "Outlets" browser after makeing changes to connections - updates "connected" image on selected outlet.

This commit is contained in:
Sergii Stoian 2019-12-28 01:13:38 +02:00
parent e54c0fa607
commit 1ce96d0d79

View file

@ -494,6 +494,7 @@ selectCellWithString: (NSString*)title
NSRunAlertPanel(_(@"Problem making connection"),
_(@"Please select a valid destination."),
_(@"OK"), nil, nil, nil);
return;
}
else if ([connectors containsObject: currentConnector] == YES)
{
@ -545,6 +546,11 @@ selectCellWithString: (NSString*)title
[oldBrowser setPath: path];
}
// Update image marker in "Outlets" browser
NSString *newPath = [newBrowser path];
[newBrowser loadColumnZero];
[newBrowser setPath:newPath];
// mark as edited.
[super ok: sender];
[self updateButtons];