diff options
Diffstat (limited to 'macosx/HBPresetsManager.m')
-rw-r--r-- | macosx/HBPresetsManager.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/HBPresetsManager.m b/macosx/HBPresetsManager.m index aa78455ff..f897742a1 100644 --- a/macosx/HBPresetsManager.m +++ b/macosx/HBPresetsManager.m @@ -75,7 +75,7 @@ NSString *HBPresetsChangedNotification = @"HBPresetsChangedNotification"; for (HBPreset *preset in oldPresets.children) { - [self.root.children addObject:preset]; + [self.root insertObject:preset inChildrenAtIndex:self.root.countOfChildren]; } } @@ -209,7 +209,7 @@ typedef NS_ENUM(NSUInteger, HBPresetLoadingResult) { { for (NSDictionary *child in presetsDict[@"PresetList"]) { - [self.root.children addObject:[[HBPreset alloc] initWithDictionary:child]]; + [self.root insertObject:[[HBPreset alloc] initWithDictionary:child] inChildrenAtIndex:self.root.countOfChildren]; } if (result == HBPresetLoadingResultOKUpgraded) |