aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-12-08 19:46:16 +0000
committerstuconnolly <stuart02@gmail.com>2010-12-08 19:46:16 +0000
commit05f91b6778fecc28add3cc2218867cf9134599e7 (patch)
tree46f23d34e9a58d24544be2889f571cd67400e6f3 /Source
parent04beef3900cfdb023257ebfeadb48a9949e9ea5f (diff)
downloadsequelpro-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.
Diffstat (limited to 'Source')
-rw-r--r--Source/SPConnectionControllerDelegate.m5
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];
}