diff --git a/PBWebGitController.h b/PBWebGitController.h index ebc368d..e59fa4f 100644 --- a/PBWebGitController.h +++ b/PBWebGitController.h @@ -13,7 +13,6 @@ #import @interface PBWebGitController : NSObject { - IBOutlet ApplicationController* controller; IBOutlet WebView* view; IBOutlet PBDetailController* detailController; NSString* currentSha; diff --git a/PBWebGitController.m b/PBWebGitController.m index 89dcb21..a6a5d80 100644 --- a/PBWebGitController.m +++ b/PBWebGitController.m @@ -65,7 +65,7 @@ - (void) selectCommit: (NSString*) sha { NSPredicate* selection = [NSPredicate predicateWithFormat:@"sha == %@", sha]; - NSArray* selectedCommits = [controller.repository.revisionList.commits filteredArrayUsingPredicate:selection]; + NSArray* selectedCommits = [detailController.repository.revisionList.commits filteredArrayUsingPredicate:selection]; // TODO: reimplement this. How can we set the new commit? Our detailscontroller is read-only }