From da0dba0eae177dcb27993a64ef2fb0e4cd0b018b Mon Sep 17 00:00:00 2001 From: Bibiko Date: Wed, 23 Sep 2009 15:23:01 +0000 Subject: =?UTF-8?q?=E2=80=A2=20while=20a=20connection=20will=20be=20initia?= =?UTF-8?q?lized=20via=20a=20SPF=20file=20disable=20the=20possibility=20to?= =?UTF-8?q?=20choose=20an=20other=20connection=20from=20the=20favorites'?= =?UTF-8?q?=20list;=20otherwise=20the=20SPF=20file=20could=20run=20out=20o?= =?UTF-8?q?f=20sync?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPConnectionController.m | 4 ++++ Source/TableDocument.m | 5 +++++ 2 files changed, 9 insertions(+) (limited to 'Source') diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index 7e0ac050..d4c9d665 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -843,6 +843,10 @@ } else { [(ImageAndTextCell *)aCell setIndentationLevel:1]; } + if([favoritesTable isEnabled]) + [(ImageAndTextCell *)aCell setTextColor:[NSColor blackColor]]; + else + [(ImageAndTextCell *)aCell setTextColor:[NSColor grayColor]]; } #pragma mark - diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 01d73820..6c1bd042 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -214,6 +214,11 @@ // Deselect all favorites [[connectionController valueForKeyPath:@"favoritesTable"] deselectAll:connectionController]; + // Suppress the possibility to choose an other connection from the favorites + // if a connection should initialized by SPF file. Otherwise it could happen + // that the SPF file runs out of sync. + [[connectionController valueForKeyPath:@"favoritesTable"] setEnabled:NO]; + NSData *pData = [NSData dataWithContentsOfFile:path options:NSUncachedRead error:&readError]; -- cgit v1.2.3