summaryrefslogtreecommitdiffstats
path: root/macosx/HBAddCategoryController.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBAddCategoryController.m')
-rw-r--r--macosx/HBAddCategoryController.m6
1 files changed, 2 insertions, 4 deletions
diff --git a/macosx/HBAddCategoryController.m b/macosx/HBAddCategoryController.m
index 41de50330..dd85ea4d7 100644
--- a/macosx/HBAddCategoryController.m
+++ b/macosx/HBAddCategoryController.m
@@ -52,8 +52,7 @@
- (IBAction)dismiss:(id)sender
{
- [self.window orderOut:nil];
- [NSApp endSheet:self.window returnCode:NSModalResponseCancel];
+ [self.window.sheetParent endSheet:self.window returnCode:NSModalResponseCancel];
}
- (IBAction)create:(id)sender
@@ -61,8 +60,7 @@
self.category = [[HBPreset alloc] initWithCategoryName:self.name.stringValue builtIn:NO];
[self.manager addPreset:self.category];
- [self.window orderOut:nil];
- [NSApp endSheet:self.window returnCode:NSModalResponseOK];
+ [self.window.sheetParent endSheet:self.window returnCode:NSModalResponseOK];
}