aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFavoritesController.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-05-28 00:59:47 +0000
committerrowanbeentje <rowan@beent.je>2012-05-28 00:59:47 +0000
commit93005290f2ceee7a573d69379a4d1f1875d5aa95 (patch)
tree2c515a4420a36368ca9da2fc35ed8c886bb268da /Source/SPFavoritesController.m
parent733e7c89c5f092bc11a06d754bde149a5423c928 (diff)
downloadsequelpro-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/SPFavoritesController.m')
-rw-r--r--Source/SPFavoritesController.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/SPFavoritesController.m b/Source/SPFavoritesController.m
index f49749c8..2a432326 100644
--- a/Source/SPFavoritesController.m
+++ b/Source/SPFavoritesController.m
@@ -147,6 +147,8 @@ static SPFavoritesController *sharedFavoritesController = nil;
[node setIsGroup:YES];
[self _addNode:node asChildOfNode:parent];
+
+ [[NSNotificationCenter defaultCenter] postNotificationName:SPConnectionFavoritesChangedNotification object:self];
return node;
}
@@ -165,6 +167,8 @@ static SPFavoritesController *sharedFavoritesController = nil;
[self _addNode:node asChildOfNode:parent];
+ [[NSNotificationCenter defaultCenter] postNotificationName:SPConnectionFavoritesChangedNotification object:self];
+
return node;
}
@@ -180,6 +184,8 @@ static SPFavoritesController *sharedFavoritesController = nil;
// Save data to disk
[self saveFavorites];
+
+ [[NSNotificationCenter defaultCenter] postNotificationName:SPConnectionFavoritesChangedNotification object:self];
}
#pragma mark -