From 5eda4d4358803978b7a71117d67de36e97383814 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Sat, 24 Oct 2009 19:45:13 +0000 Subject: [PATCH] See ChangeLog Monotone-Parent: 3572e45c321899117c386ff508dc41087a98f488 Monotone-Revision: 4ddc37a5ea373379044dff16ec46aefe043aeadd Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2009-10-24T19:45:13 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 7 +++++++ UI/Scheduler/UIxCalListingActions.m | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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]; }