From c193919cacda828749f7a25cded79bf0ab870190 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 1 Sep 2009 16:07:46 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixes=20for=20Query=20Favorite=20Manager:?= =?UTF-8?q?=20-=20renamed=20"Save"=20button=20to=20"Apply=20Changes"=20to?= =?UTF-8?q?=20make=20it=20clear=20what=20will=20be=20done=20by=20clicking?= =?UTF-8?q?=20at=20it=20-=20suppress=20context=20menu=20and=20selection=20?= =?UTF-8?q?while=20right-clicking=20at=20a=20header=20-=20while=20in=20cel?= =?UTF-8?q?l=20editing=20ESC=20will=20abort=20the=20editing=20(not=20close?= =?UTF-8?q?=20the=20sheet)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPTableView.m | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Source/SPTableView.m') diff --git a/Source/SPTableView.m b/Source/SPTableView.m index 38cd949e..801a528b 100644 --- a/Source/SPTableView.m +++ b/Source/SPTableView.m @@ -23,6 +23,7 @@ // More info at #import "SPTableView.h" +#import "SPQueryFavoriteManager.h" #import "SPArrayAdditions.h" @implementation SPTableView @@ -46,6 +47,10 @@ if([NSArrayObjectAtIndex([[self delegate] valueForKeyPath:@"tableTypes"], row) intValue] == -1) return nil; } + if([[[[self delegate] class] description] isEqualToString:@"SPQueryFavoriteManager"]) { + if([NSArrayObjectAtIndex([[self delegate] valueForKeyPath:@"favoriteProperties"], row) intValue] == SP_FAVORITETYPE_HEADER) + return nil; + } [self selectRow:row byExtendingSelection:NO]; [[self window] makeFirstResponder:self]; -- cgit v1.2.3