summaryrefslogtreecommitdiffstats
path: root/macosx/HBPresetsViewController.m
diff options
context:
space:
mode:
authorBradley Sepos <[email protected]>2018-02-01 08:33:34 -0500
committerBradley Sepos <[email protected]>2018-03-17 17:01:55 -0400
commitc56d4eeb65b978dd84d2b0efa8851985bf62db59 (patch)
treef0c5f382743acda47ff43c8ec4982aef65850d13 /macosx/HBPresetsViewController.m
parente7f78cb1cf6ecafe60dd259c9aee9640c8d302cd (diff)
MacGUI: Update main window preset control when renaming via popover.
Diffstat (limited to 'macosx/HBPresetsViewController.m')
-rw-r--r--macosx/HBPresetsViewController.m9
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)