File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ - (void)closeView
135
135
{
136
136
[[NSNotificationCenter defaultCenter ] removeObserver: self ];
137
137
[webController closeView ];
138
+ [super closeView ];
138
139
}
139
140
140
141
- (NSResponder *)firstResponder ;
Original file line number Diff line number Diff line change @@ -125,6 +125,11 @@ - (void)awakeFromNib
125
125
[[NSNotificationCenter defaultCenter ] addObserver: self selector: @selector (expandCollapseItem: ) name: NSOutlineViewItemWillCollapseNotification object: sourceView];
126
126
}
127
127
128
+ - (void )closeView
129
+ {
130
+ [super closeView ];
131
+ }
132
+
128
133
- (void )dealloc
129
134
{
130
135
[[NSNotificationCenter defaultCenter ] removeObserver: self name: NSOutlineViewItemWillExpandNotification object: sourceView];
Original file line number Diff line number Diff line change @@ -35,7 +35,9 @@ - (void)closeView
35
35
{
36
36
[self unbind: @" repository" ];
37
37
if (_hasViewLoaded)
38
- [[self view ] removeFromSuperview ]; // remove the current view
38
+ [[self view ] removeFromSuperview ]; // remove the current view
39
+ repository = nil ;
40
+ superController = nil ;
39
41
}
40
42
41
43
- (void )awakeFromNib
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ NS_ASSUME_NONNULL_BEGIN
40
40
@property (getter =isUncollapsible) BOOL uncollapsible;
41
41
@property (getter =isExpanded) BOOL expanded;
42
42
@property PBGitRevSpecifier *revSpecifier;
43
- @property PBSourceViewItem *parent;
43
+ @property ( weak ) PBSourceViewItem *parent;
44
44
@property (readonly ) NSString *iconName;
45
45
@property (nullable , readonly ) NSImage *icon;
46
46
You can’t perform that action at this time.
0 commit comments