mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Fix some minor issues
This commit is contained in:
parent
2cd0585079
commit
ca72a59467
1 changed files with 5 additions and 4 deletions
|
@ -612,11 +612,9 @@ static NSStoryboard *__mainStoryboard = nil;
|
|||
NSArray *array = [xmlIn nodesForXPath: @"//objects[1]"
|
||||
error: NULL];
|
||||
NSXMLElement *objects = [array objectAtIndex: 0]; // get the "objects" section
|
||||
NSArray *controllers = [objects nodesForXPath: @"windowController"
|
||||
error: NULL];
|
||||
|
||||
NSString *uuidString = nil;
|
||||
NSArray *docArray = [xmlIn nodesForXPath: @"document" error: NULL];
|
||||
|
||||
if ([docArray count] > 0)
|
||||
{
|
||||
NSXMLElement *docElem = (NSXMLElement *)[docArray objectAtIndex: 0];
|
||||
|
@ -634,8 +632,11 @@ static NSStoryboard *__mainStoryboard = nil;
|
|||
[docElem addAttribute: new_uuid_attr];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Get the controller...
|
||||
NSString *src = nil;
|
||||
NSArray *controllers = [objects nodesForXPath: @"windowController"
|
||||
error: NULL];
|
||||
if ([controllers count] > 0)
|
||||
{
|
||||
NSXMLElement *controller = (NSXMLElement *)[controllers objectAtIndex: 0];
|
||||
|
|
Loading…
Reference in a new issue