diff options
author | Bradley Sepos <[email protected]> | 2018-02-01 08:33:34 -0500 |
---|---|---|
committer | Bradley Sepos <[email protected]> | 2018-03-17 17:01:55 -0400 |
commit | c56d4eeb65b978dd84d2b0efa8851985bf62db59 (patch) | |
tree | f0c5f382743acda47ff43c8ec4982aef65850d13 /macosx/HBPresetsViewController.m | |
parent | e7f78cb1cf6ecafe60dd259c9aee9640c8d302cd (diff) |
MacGUI: Update main window preset control when renaming via popover.
Diffstat (limited to 'macosx/HBPresetsViewController.m')
-rw-r--r-- | macosx/HBPresetsViewController.m | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/macosx/HBPresetsViewController.m b/macosx/HBPresetsViewController.m index 2e44985f6..4e52ad1a9 100644 --- a/macosx/HBPresetsViewController.m +++ b/macosx/HBPresetsViewController.m @@ -249,6 +249,15 @@ static void *HBPresetsViewControllerContext = &HBPresetsViewControllerContext; } } +- (IBAction)renamed:(id)sender +{ + if (self.delegate && [[self.treeController.selectedObjects firstObject] isLeaf]) + { + [self.delegate selectionDidChange]; + [[NSNotificationCenter defaultCenter] postNotificationName:HBPresetsChangedNotification object:nil]; + } +} + - (IBAction)addNewPreset:(id)sender { if (self.delegate) |