summaryrefslogtreecommitdiffstats
path: root/macosx/HBPresetsManager.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-03-09 19:16:40 +0100
committerDamiano Galassi <[email protected]>2016-03-09 19:16:40 +0100
commit96c02dd6f256f4a4e74f8962f56502d28e5e65a3 (patch)
tree44433165a1403802be62d6072a3a3963913e92d9 /macosx/HBPresetsManager.m
parent6dfc9c4a5a5d9a7bc56d9b10756e3b66a5887069 (diff)
MacGui: use the kvc accessor methods, so that the presets menu will update properly after a change in the presets.
Diffstat (limited to 'macosx/HBPresetsManager.m')
-rw-r--r--macosx/HBPresetsManager.m4
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)