From e31f8098493b75d8575d10dc6b8615d2f885a1c5 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 1 Nov 2012 10:27:27 -0400 Subject: [PATCH] Use the system defaults when the user defaults are not availble --- UI/SOGoUI/UIxComponent.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UI/SOGoUI/UIxComponent.m b/UI/SOGoUI/UIxComponent.m index d415932c3..f80e9e9ec 100644 --- a/UI/SOGoUI/UIxComponent.m +++ b/UI/SOGoUI/UIxComponent.m @@ -146,6 +146,8 @@ static SoProduct *commonProduct = nil; _selectedDate = nil; queryParameters = nil; ASSIGN (userDefaults, [[context activeUser] userDefaults]); + if (!userDefaults) + ASSIGN (userDefaults, [SOGoSystemDefaults sharedSystemDefaults]); language = [userDefaults language]; ASSIGN (locale, [[self resourceManager] localeForLanguageNamed: language]);