diff --git a/PBWebChangesController.h b/PBWebChangesController.h index de934cc..89eb554 100644 --- a/PBWebChangesController.h +++ b/PBWebChangesController.h @@ -15,8 +15,6 @@ IBOutlet NSArrayController *unstagedFilesController; IBOutlet NSArrayController *cachedFilesController; IBOutlet PBGitCommitController *controller; - - id previousFile; } - (void) showDiff:(PBChangedFile *)file cached:(BOOL)cached; diff --git a/PBWebChangesController.m b/PBWebChangesController.m index e6cb917..d3ba89f 100644 --- a/PBWebChangesController.m +++ b/PBWebChangesController.m @@ -58,12 +58,6 @@ static PBChangedFile *lastFileSelected = nil; return; } - // Don't reload if we already display this file - if (previousFile == file) - return; - - previousFile = file; - id script = [view windowScriptObject]; NSLog(@"Showing diff.."); [script callWebScriptMethod:@"showFileChanges" withArguments:[NSArray arrayWithObjects:file, [NSNumber numberWithBool:cached], nil]];