Permalink
Browse files

I think it's better like this

  • Loading branch information...
1 parent a6e9c47 commit 25e11019fc315a66200959515a81e51a0a960eb8 Jérôme Lebel committed Jul 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 Sources/ConnectionWindow/MHQueryWindowController.m
@@ -616,7 +616,8 @@ - (void)jsonWindowWillClose:(NSNotification *)notification
MHJsonWindowController *jsonWindowController = notification.object;
id idValue;
- [[NSNotificationCenter defaultCenter] removeObserver:self name:nil object:notification.object];
+ [[NSNotificationCenter defaultCenter] removeObserver:self name:kJsonWindowSaved object:notification.object];
+ [[NSNotificationCenter defaultCenter] removeObserver:self name:kJsonWindowWillClose object:notification.object];
idValue = [jsonWindowController.jsonDict objectForKey:@"objectvalueid"];
if (idValue) {
[_jsonWindowControllers removeObjectForKey:[MODServer convertObjectToJson:[MODSortedMutableDictionary sortedDictionaryWithObject:idValue forKey:@"_id"] pretty:NO]];

0 comments on commit 25e1101

Please sign in to comment.