From e0a34224392aad82b3fc48c6bf2ea3e85a0e387d Mon Sep 17 00:00:00 2001 From: Nathan Kinsinger Date: Sat, 20 Mar 2010 18:11:37 -0600 Subject: [PATCH] Bugfix: Index not refreshing on manual refresh The window controller should be calling the content controller's refresh and not the repository's. --- PBGitWindowController.m | 2 +- PBViewController.h | 1 + PBViewController.m | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/PBGitWindowController.m b/PBGitWindowController.m index bfbf150..55b34b4 100644 --- a/PBGitWindowController.m +++ b/PBGitWindowController.m @@ -153,7 +153,7 @@ - (IBAction) refresh:(id)sender { - [repository forceUpdateRevisions]; + [contentController refresh:self]; } - (void) updateStatus diff --git a/PBViewController.h b/PBViewController.h index 56dfbf1..5992196 100644 --- a/PBViewController.h +++ b/PBViewController.h @@ -26,5 +26,6 @@ - (void) removeView; - (void) updateView; - (NSResponder *)firstResponder; +- (IBAction) refresh:(id)sender; @end diff --git a/PBViewController.m b/PBViewController.m index 901bbb3..6f228d4 100644 --- a/PBViewController.m +++ b/PBViewController.m @@ -43,6 +43,10 @@ { } +- (IBAction) refresh: sender +{ +} + - (NSResponder *)firstResponder; { return nil;