diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPConnectionController.m | 4 | ||||
-rw-r--r-- | Source/TableDocument.m | 5 |
2 files changed, 9 insertions, 0 deletions
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]; |