diff options
author | stuconnolly <stuart02@gmail.com> | 2010-12-08 19:46:16 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-12-08 19:46:16 +0000 |
commit | 05f91b6778fecc28add3cc2218867cf9134599e7 (patch) | |
tree | 46f23d34e9a58d24544be2889f571cd67400e6f3 | |
parent | 04beef3900cfdb023257ebfeadb48a9949e9ea5f (diff) | |
download | sequelpro-05f91b6778fecc28add3cc2218867cf9134599e7.tar.gz sequelpro-05f91b6778fecc28add3cc2218867cf9134599e7.tar.bz2 sequelpro-05f91b6778fecc28add3cc2218867cf9134599e7.zip |
Enable the 'add to favorites' button when the user manually changes a connection's type.
-rw-r--r-- | Source/SPConnectionControllerDelegate.m | 5 |
1 files changed, 4 insertions, 1 deletions
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]; } |