From d8068b1398f5c73718cdc0a6c7181d05ba29043c Mon Sep 17 00:00:00 2001 From: Pieter de Bie Date: Wed, 27 Aug 2008 22:14:11 +0200 Subject: [PATCH] Don't display graph if there's a search or a sort This does introduce a new issue: You can't reset the graph after having ordered. How to introduce this into the GUI? --- PBDetailController.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/PBDetailController.m b/PBDetailController.m index d451a15..3c58caa 100644 --- a/PBDetailController.m +++ b/PBDetailController.m @@ -9,7 +9,7 @@ #import "PBDetailController.h" #import "CWQuickLook.h" #import "PBGitGrapher.h" - +#import "PBGitRevisionCell.h" #define QLPreviewPanel NSClassFromString(@"QLPreviewPanel") @@ -149,9 +149,12 @@ if (![[aTableColumn identifier] isEqualToString:@"subject"]) return; - if (self.repository.revisionList.grapher) { + PBGitRevisionCell* cell = aCell; + if (self.repository.revisionList.grapher && + ![commitController filterPredicate] && + [[commitController sortDescriptors] count] == 0) { PBGitGrapher* g = self.repository.revisionList.grapher; - [aCell setCellInfo: [g cellInfoForRow:rowIndex]]; + [cell setCellInfo: [g cellInfoForRow:rowIndex]]; } } @end -- 2.11.4.GIT