diff options
author | rowanbeentje <rowan@beent.je> | 2012-05-28 00:59:47 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2012-05-28 00:59:47 +0000 |
commit | 93005290f2ceee7a573d69379a4d1f1875d5aa95 (patch) | |
tree | 2c515a4420a36368ca9da2fc35ed8c886bb268da /Source/SPConnectionControllerDelegate.m | |
parent | 733e7c89c5f092bc11a06d754bde149a5423c928 (diff) | |
download | sequelpro-93005290f2ceee7a573d69379a4d1f1875d5aa95.tar.gz sequelpro-93005290f2ceee7a573d69379a4d1f1875d5aa95.tar.bz2 sequelpro-93005290f2ceee7a573d69379a4d1f1875d5aa95.zip |
- Fix issues where removing favorites could cause crashes in other tabs/windows where the favorite was selected (Issue #1351)
- Keep multiple windows and tabs in sync when editing favorites
- Fix a new KVO observation not being removed on object teardown
Diffstat (limited to 'Source/SPConnectionControllerDelegate.m')
-rw-r--r-- | Source/SPConnectionControllerDelegate.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/SPConnectionControllerDelegate.m b/Source/SPConnectionControllerDelegate.m index a1a12c1c..bbdf7624 100644 --- a/Source/SPConnectionControllerDelegate.m +++ b/Source/SPConnectionControllerDelegate.m @@ -310,7 +310,9 @@ static NSString *SPDatabaseImage = @"database-small"; [favoritesController saveFavorites]; [self _reloadFavoritesViewData]; - + + [[NSNotificationCenter defaultCenter] postNotificationName:SPConnectionFavoritesChangedNotification object:self]; + [[[[NSApp delegate] preferenceController] generalPreferencePane] updateDefaultFavoritePopup]; // Update the selection to account for rearranged faourites |