diff options
Diffstat (limited to 'fpicker/source/aqua/SalAquaPicker.cxx')
-rw-r--r-- | fpicker/source/aqua/SalAquaPicker.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/fpicker/source/aqua/SalAquaPicker.cxx b/fpicker/source/aqua/SalAquaPicker.cxx index 43962a30d3d5..07534a2f401a 100644 --- a/fpicker/source/aqua/SalAquaPicker.cxx +++ b/fpicker/source/aqua/SalAquaPicker.cxx @@ -123,11 +123,13 @@ void SAL_CALL SalAquaPicker::implInitialize() * So the only reliable way seems to be using the NSUserDefaults object because that is where that value is stored and * to just overwrite it if it has the wrong value. */ - NSUserDefaults *pDefaults = [NSUserDefaults standardUserDefaults]; - NSNumber *pExtn = [pDefaults objectForKey:kSetHideExtensionStateKey]; - if(pExtn == nil || [pExtn boolValue] == NO) { - OSL_TRACE("Hiding extension"); - [pDefaults setBool:YES forKey:kSetHideExtensionStateKey]; + { + NSUserDefaults *pDefaults = [NSUserDefaults standardUserDefaults]; + NSNumber *pExtn = [pDefaults objectForKey:kSetHideExtensionStateKey]; + if(pExtn == nil || [pExtn boolValue] == NO) { + OSL_TRACE("Hiding extension"); + [pDefaults setBool:YES forKey:kSetHideExtensionStateKey]; + } } break; |