diff --git a/ChangeLog b/ChangeLog index 667aca4ed..be5aef52f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,13 @@ properties window. * Updated the French translation with regard to event delegation support. + * UI/Scheduler/UIxCalListingActions.m + We now handle BOOL as real BOOL when storing them + in the prefs instead of going with NSNumber. No + need to do that and our JSON generator/parser + will handle this properly. This avoid a dump + crash when toying with the "Show completed tasks" + toggle in the calendar module. 2009-10-23 Wolfgang Sourdeau diff --git a/UI/Scheduler/UIxCalListingActions.m b/UI/Scheduler/UIxCalListingActions.m index 64cbf70f3..d8c12f4a4 100644 --- a/UI/Scheduler/UIxCalListingActions.m +++ b/UI/Scheduler/UIxCalListingActions.m @@ -1006,8 +1006,8 @@ _computeBlocksPosition (NSArray *blocks) if (setUserDefault) { ud = [[context activeUser] userDefaults]; - [ud setObject: [NSNumber numberWithInt: showCompleted] - forKey: @"ShowCompletedTasks"]; + [ud setBool: showCompleted + forKey: @"ShowCompletedTasks"]; [ud synchronize]; }