Skip to content

Commit 57365cf

Browse files
committed
Make our context menu items use the responder chain
1 parent 78a7388 commit 57365cf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Classes/Controllers/PBRefController.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ - (IBAction) stashViewDiff:(PBRefMenuItem *)sender
217217

218218
#pragma mark Tags
219219

220-
- (void) showTagInfoSheet:(PBRefMenuItem *)sender
220+
- (IBAction) showTagInfoSheet:(PBRefMenuItem *)sender
221221
{
222222
id<PBGitRefish> refish = sender.refishs.firstObject;
223223
if ([refish refishType] != kGitXTagType)
@@ -301,12 +301,12 @@ - (void)deleteRefSheetDidEnd:(NSAlert *)sheet returnCode:(int)returnCode context
301301

302302
- (NSArray<NSMenuItem *> *) menuItemsForRef:(PBGitRef *)ref
303303
{
304-
return [PBRefMenuItem defaultMenuItemsForRef:ref inRepository:historyController.repository target:self];
304+
return [PBRefMenuItem defaultMenuItemsForRef:ref inRepository:historyController.repository target:nil];
305305
}
306306

307307
- (NSArray<NSMenuItem *> *) menuItemsForCommits:(NSArray<PBGitCommit *> *)commits
308308
{
309-
return [PBRefMenuItem defaultMenuItemsForCommits:commits target:self];
309+
return [PBRefMenuItem defaultMenuItemsForCommits:commits target:nil];
310310
}
311311

312312
- (NSArray<NSMenuItem *> *)menuItemsForRow:(NSInteger)rowIndex

Classes/Views/PBRefMenuItem.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ + (PBRefMenuItem *) separatorItem
6666

6767
+ (NSArray<NSMenuItem *> *) defaultMenuItemsForRef:(PBGitRef *)ref inRepository:(PBGitRepository *)repo target:(id)target
6868
{
69-
if (!ref || !repo || !target) {
69+
if (!ref || !repo) {
7070
return nil;
7171
}
7272

0 commit comments

Comments
 (0)