Proper system defaults fallback for preferences

(Bug #145)

Monotone-Parent: 86d5fda1266a9ae6071c1b0c48daa229594679fb
Monotone-Revision: 33a4befb91778f46b962f6c895f7697b0d1df722

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2009-10-06T18:12:07
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2009-10-06 18:12:07 +00:00
parent a9f4d77c2c
commit 725878ebdb
8 changed files with 99 additions and 36 deletions
+2 -5
View File
@@ -120,11 +120,8 @@
{
unsigned int currentHour, lastHour;
// For later
ud = [[context activeUser] userDefaults];
timeFormat = [NSMutableString stringWithString: [ud stringForKey: @"TimeFormat"]];
if (!timeFormat || [timeFormat length] == 0)
timeFormat = [NSMutableString stringWithString: @"%H:00"];
// For later in method currentTableHour
timeFormat = [[context activeUser] timeFormat];
if (!hoursToDisplay)
{