File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -170,16 +170,16 @@ - (void) selectCurrentBranch
170
170
return ;
171
171
}
172
172
173
- dispatch_async (dispatch_get_main_queue (), ^{
174
- PBSourceViewItem *item = [ self addRevSpec: rev];
175
- if ( item) {
176
- [sourceView PBExpandItem: item expandParents: YES ];
177
- NSIndexSet *index = [ NSIndexSet indexSetWithIndex: [ sourceView rowForItem : item] ];
178
-
179
- [sourceView deselectAll: nil ];
180
- [sourceView selectRowIndexes: index byExtendingSelection: NO ];
181
- }
182
- });
173
+ dispatch_assert_queue (dispatch_get_main_queue ());
174
+
175
+ PBSourceViewItem * item = [ self addRevSpec: rev];
176
+ if ( item) {
177
+ [ sourceView PBExpandItem : item expandParents: YES ];
178
+ NSIndexSet *index = [ NSIndexSet indexSetWithIndex: [sourceView rowForItem: item]];
179
+
180
+ [sourceView deselectAll: nil ];
181
+ [sourceView selectRowIndexes: index byExtendingSelection: NO ];
182
+ }
183
183
}
184
184
185
185
- (PBSourceViewItem *) itemForRev : (PBGitRevSpecifier *)rev
You can’t perform that action at this time.
0 commit comments