Skip to content

Commit 6e72e21

Browse files
committed
Use hasViewLoaded bool I found.
1 parent 5120a22 commit 6e72e21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PBGitHistoryController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ - (void)closeView
488488
[treeController removeObserver:self forKeyPath:@"selection"];
489489

490490
//Only stop these observations if the nib got loaded
491-
if ([self treeController]) {
491+
if (hasViewLoaded) {
492492
[repository.revisionList removeObserver:self forKeyPath:@"isUpdating"];
493493
[repository removeObserver:self forKeyPath:@"currentBranch"];
494494
[repository removeObserver:self forKeyPath:@"refs"];

0 commit comments

Comments
 (0)