From 05f91b6778fecc28add3cc2218867cf9134599e7 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Wed, 8 Dec 2010 19:46:16 +0000 Subject: Enable the 'add to favorites' button when the user manually changes a connection's type. --- Source/SPConnectionControllerDelegate.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Source/SPConnectionControllerDelegate.m') diff --git a/Source/SPConnectionControllerDelegate.m b/Source/SPConnectionControllerDelegate.m index 4af4eeda..ee218ba3 100644 --- a/Source/SPConnectionControllerDelegate.m +++ b/Source/SPConnectionControllerDelegate.m @@ -409,7 +409,7 @@ - (void)tabView:(NSTabView *)tabView didSelectTabViewItem:(NSTabViewItem *)tabViewItem { NSInteger selectedTabView = [tabView indexOfTabViewItem:tabViewItem]; - + // Deselect any selected favorite for manual changes if (!automaticFavoriteSelection) [favoritesOutlineView deselectAll:self]; automaticFavoriteSelection = NO; @@ -425,6 +425,9 @@ previousType = selectedTabView; + // Enable the add to favorites button + [addToFavoritesButton setEnabled:YES]; + [self _favoriteTypeDidChange]; } -- cgit v1.2.3