diff options
author | Damiano Galassi <[email protected]> | 2017-12-20 22:06:38 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2017-12-20 22:06:38 +0100 |
commit | b9b77487aa14741e6662cc1f818cc5fbc1d9f1b5 (patch) | |
tree | 2347c149c9804f343246e48faaf9f531d5c9971b /macosx/HBAddPresetController.m | |
parent | 3b29457332a0bf43fc923b8f3694661acb92d4f4 (diff) |
MacGui: update preset when navigating with the keyboard arrows, fix #452
Diffstat (limited to 'macosx/HBAddPresetController.m')
-rw-r--r-- | macosx/HBAddPresetController.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/HBAddPresetController.m b/macosx/HBAddPresetController.m index 4ff228d01..76ce3facd 100644 --- a/macosx/HBAddPresetController.m +++ b/macosx/HBAddPresetController.m @@ -252,7 +252,7 @@ typedef NS_ENUM(NSUInteger, HBAddPresetControllerMode) { [newPreset cleanUp]; self.preset = [newPreset copy]; - [self.selectedCategory insertObject:self.preset inChildrenAtIndex:0]; + [self.selectedCategory insertObject:self.preset inChildrenAtIndex:self.selectedCategory.countOfChildren]; [self.window orderOut:nil]; [NSApp endSheet:self.window returnCode:NSModalResponseContinue]; |