diff --git a/macosx/FileRenameSheetController.m b/macosx/FileRenameSheetController.m index 72024f747..966628093 100644 --- a/macosx/FileRenameSheetController.m +++ b/macosx/FileRenameSheetController.m @@ -101,8 +101,8 @@ typedef void (^CompletionBlock)(BOOL); [self.renameButton sizeToFit]; const CGFloat extra = NSWidth(oldRenameFrame) - NSWidth([self.renameButton frame]); - [self.renameButton setStringValue: NSLocalizedString(@"Rename", "rename sheet button")]; - [self.cancelButton setStringValue: NSLocalizedString(@"Cancel", "rename sheet button")]; + [self.renameButton setTitle: NSLocalizedString(@"Rename", "rename sheet button")]; + [self.cancelButton setTitle: NSLocalizedString(@"Cancel", "rename sheet button")]; [self.renameButton sizeToFit]; [self.cancelButton sizeToFit];