Change current document when called with different arguments

This commit is contained in:
Pieter de Bie
2008-09-12 14:47:06 +02:00
parent b6b54bcca5
commit 7b2efe1ac2
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -8,6 +8,7 @@
#import "PBRepositoryDocumentController.h"
#import "PBGitRepository.h"
#import "PBGitRevList.h"
@implementation PBRepositoryDocumentController
// This method is overridden to configure the open panel to only allow
@@ -38,7 +39,8 @@
[self addDocument:document];
[document makeWindowControllers];
} else {
// TODO: Add another revwalk specifier and show that.
// TODO: Use a more decent approach for this
[document setValue: [[PBGitRevList alloc] initWithRepository:document andRevListParameters: args] forKey:@"revisionList"];
}
[document showWindows];
return document;