From 49d79275662d38718e076e181cef1b24330a77d6 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Fri, 31 Jul 2009 12:50:46 +0000 Subject: [PATCH] See ChangeLog Monotone-Parent: bed7078c0d71e62ad9f60d3fef4f7ca41808fa85 Monotone-Revision: 99ca451495fc28364e0d775f0a4b950f0df4164d Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2009-07-31T12:50:46 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 5 +++++ UI/Scheduler/UIxCalView.m | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 42e45b227..92cd3825a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-08-03 Francis Lachapelle + + * UI/Scheduler/UIxCalView.m ([UIxCalView -setCurrentView:]): avoid + writing the user defaults if the current view hasn't change. + 2009-07-29 Francis Lachapelle * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor diff --git a/UI/Scheduler/UIxCalView.m b/UI/Scheduler/UIxCalView.m index af82a6ebe..f03419bc4 100644 --- a/UI/Scheduler/UIxCalView.m +++ b/UI/Scheduler/UIxCalView.m @@ -1,6 +1,6 @@ /* UIxCalMainView.m - this file is part of SOGo * - * Copyright (C) 2006, 2007 Inverse inc. + * Copyright (C) 2006-2009 Inverse inc. * * Author: Wolfgang Sourdeau * @@ -360,10 +360,12 @@ static BOOL shouldDisplayWeekend = NO; moduleSettings = [NSMutableDictionary dictionary]; [ud setObject: moduleSettings forKey: module]; } - - [moduleSettings setObject: theView - forKey: @"View"]; - [ud synchronize]; + if (![theView isEqualToString: (NSString*)[moduleSettings objectForKey: @"View"]]) + { + [moduleSettings setObject: theView + forKey: @"View"]; + [ud synchronize]; + } } /* current day related */