From: Robert Sesek Date: Sun, 8 Dec 2019 04:49:39 +0000 (-0500) Subject: Force a re-serialization of Breakpoints on decode. X-Git-Tag: 2.0-beta-1~15 X-Git-Url: https://src.bluestatic.org/?a=commitdiff_plain;h=7895e7e83c6c370ab0605ba80a7517b8d38d5c55;p=macgdbp.git Force a re-serialization of Breakpoints on decode. --- diff --git a/Source/BreakpointManager.m b/Source/BreakpointManager.m index 75e6786..bc4b216 100644 --- a/Source/BreakpointManager.m +++ b/Source/BreakpointManager.m @@ -39,9 +39,10 @@ NSArray* savedBreakpoints = [[NSUserDefaults standardUserDefaults] arrayForKey:kPrefBreakpoints]; if (savedBreakpoints) { - [_savedBreakpoints addObjectsFromArray:savedBreakpoints]; for (NSDictionary* d in savedBreakpoints) { - [_breakpoints addObject:[[Breakpoint alloc] initWithDictionary:d]]; + Breakpoint* bp = [[Breakpoint alloc] initWithDictionary:d]; + [_breakpoints addObject:bp]; + [_savedBreakpoints addObject:[bp dictionary]]; } } }