Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

I think it's better like this

  • Loading branch information...
commit 25e11019fc315a66200959515a81e51a0a960eb8 1 parent a6e9c47
Jérôme Lebel authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  Sources/ConnectionWindow/MHQueryWindowController.m
View
3  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]];
Please sign in to comment.
Something went wrong with that request. Please try again.