mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Only update selectedCommit in [PBGitHistoryController updateKeys] when not nil.
This commit is contained in:
@@ -121,7 +121,10 @@
|
||||
|
||||
- (void) updateKeys
|
||||
{
|
||||
selectedCommit = [[commitController selectedObjects] lastObject];
|
||||
PBGitCommit * lastObject = [[commitController selectedObjects] lastObject];
|
||||
if (lastObject) {
|
||||
selectedCommit = lastObject;
|
||||
}
|
||||
|
||||
if (self.selectedCommitDetailsIndex == kHistoryTreeViewIndex) {
|
||||
self.gitTree = selectedCommit.tree;
|
||||
|
||||
Reference in New Issue
Block a user