Chameleon Applications

Chameleon Applications Commit Details

Date:2010-01-25 19:36:27 (14 years 2 months ago)
Author:Rekursor
Commit:54
Parents: 53
Message:Fixed crash since parse engine modifications: a crash would happen if no pref file was already created.
Changes:
M/trunk/ChameleonPrefPane/ChameleonPrefPane.xcodeproj/project.pbxproj
M/trunk/ChameleonPrefPane/bin/OSX105/Chameleon.prefPane.zip
M/trunk/ChameleonPrefPane/Sources/BootSetupController.mm
M/trunk/ChameleonPrefPane/bin/OSX106/Chameleon.prefPane.zip
M/trunk/ChameleonPrefPane/Sources/ChameleonPrefPane.mm

File differences

trunk/ChameleonPrefPane/Sources/ChameleonPrefPane.mm
181181
182182
183183
184
184185
185186
186187
187188
188189
189190
190
191
191192
192193
193194
if (oldGlobalPreferences!=nil)
{
mPreferenceFileVersion= [[oldGlobalPreferences objectForKey: keyPreferencesFileVersion] intValue ];
[PreferencesControllerBase doForEachGroup: SetDefaultValues withOption: oldGlobalPreferences];
[PreferencesControllerBase doForEachGroup: LoadPreferencesOptions withOption: oldGlobalPreferences];
[mPartitionsDict addEntriesFromDictionary: [oldGlobalPreferences objectForKey: keyPartitionsList] ];
}
else
{ // Create a preference plist file with Defaults values
oldGlobalPreferences = [[NSMutableDictionary alloc] init];
[PreferencesControllerBase loadAllValues: oldGlobalPreferences];
[PreferencesControllerBase doForEachGroup: SetDefaultValues withOption: oldGlobalPreferences];
// Initialize defaults
[oldGlobalPreferences setObject: [[NSNumber alloc] initWithInt: CurrentPreferencesFileVersion]
trunk/ChameleonPrefPane/Sources/BootSetupController.mm
4747
4848
4949
50
51
5052
5153
5254
[dict setObject: [[NSNumber alloc] initWithBool: false] forKey: keySwapHD01];
[dict setObject: [[NSNumber alloc] initWithBool: false] forKey: keySwapHD02];
[dict setObject:[[NSNumber alloc] initWithBool: false] forKey: keyUseFrozenParts];
[dict setObject:[[NSNumber alloc] initWithBool: false] forKey: keyUseFrozenParts];
[dict setObject:[[NSString alloc] initWithString: @""] forKey: keyForceBootConfigPath];
}
//--------------------------------------------------------------------------
trunk/ChameleonPrefPane/ChameleonPrefPane.xcodeproj/project.pbxproj
161161
162162
163163
164
165164
166165
166
167167
168168
169169
08FB77AFFE84173DC02AAC07 /* Classes */ = {
isa = PBXGroup;
children = (
01D5DBDF110DA3CD00AAE2C3 /* GroupControllerProtocol.h */,
01B0E80E1108B85A00ACF21B /* ChameleonPrefPane.h */,
01B0E80F1108B85A00ACF21B /* ChameleonPrefPane.mm */,
01D5DBDF110DA3CD00AAE2C3 /* GroupControllerProtocol.h */,
019931DB110A37FA003B056E /* PreferencesControllerBase.h */,
019931DC110A37FA003B056E /* PreferencesControllerBase.mm */,
019930DF110A0CB4003B056E /* BootSetupController.h */,

Archive Download the corresponding diff file

Revision: 54