mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
Reinstate repair mode and add code to get rid of hard action/target settings
This commit is contained in:
parent
b7c07ebcb3
commit
ac9f09db84
1 changed files with 16 additions and 4 deletions
|
@ -197,6 +197,20 @@
|
|||
{
|
||||
NSString *name = nil;
|
||||
|
||||
// Delete old target action settings if they are directly encoded.
|
||||
if ([v respondsToSelector: @selector(setTarget:)])
|
||||
{
|
||||
[v setTarget: nil]; // remove hard set targets or actions.
|
||||
[_repairLog addObject: @"ERROR: Removing hard set target.\n"];
|
||||
NSLog(@"ERROR: Removing hard set target.\n");
|
||||
}
|
||||
if ([v respondsToSelector: @selector(setAction:)])
|
||||
{
|
||||
[v setAction: NULL]; // remove hard set targets or actions.
|
||||
[_repairLog addObject: @"ERROR: Removing hard set action.\n"];
|
||||
NSLog(@"ERROR: Removing hard set action.\n");
|
||||
}
|
||||
|
||||
// skip these...
|
||||
if([v isKindOfClass: [NSMatrix class]])
|
||||
{
|
||||
|
@ -578,12 +592,10 @@
|
|||
/*
|
||||
* Repair the .gorm file, if needed.
|
||||
*/
|
||||
/*
|
||||
if(repairFile)
|
||||
{
|
||||
[self _repairFile];
|
||||
}
|
||||
*/
|
||||
NSDebugLog(@"nameTable = %@",[container nameTable]);
|
||||
|
||||
// awaken all elements after the load is completed.
|
||||
|
|
Loading…
Reference in a new issue