Index: trunk/ChameleonPrefPane/Sources/ChameleonPrefPane.mm =================================================================== --- trunk/ChameleonPrefPane/Sources/ChameleonPrefPane.mm (revision 54) +++ trunk/ChameleonPrefPane/Sources/ChameleonPrefPane.mm (revision 55) @@ -169,6 +169,8 @@ // PrefsProp::instance().open([kPreferencesFilePath UTF8String], CreateIfNotExist, // [self auth]); + // test with preferences file already created and when no prefs exists + id oldGlobalPreferences = [ [NSDictionary dictionaryWithContentsOfFile: kPreferencesFilePath ] retain]; @@ -181,7 +183,6 @@ if (oldGlobalPreferences!=nil) { mPreferenceFileVersion= [[oldGlobalPreferences objectForKey: keyPreferencesFileVersion] intValue ]; - [PreferencesControllerBase doForEachGroup: SetDefaultValues withOption: oldGlobalPreferences]; [PreferencesControllerBase doForEachGroup: LoadPreferencesOptions withOption: oldGlobalPreferences]; [mPartitionsDict addEntriesFromDictionary: [oldGlobalPreferences objectForKey: keyPartitionsList] ]; }