masterlockcode is never saved and not set upon xbmc restart cause one do not save profiles.xml when leaving WindowsSettingsCategory.
fix: masterlockcode is not saved
Drop unrelated cosmetics.
This should probably happen in CGUIDialogLockSettings::OnOkay(). @Montellese ?
CProfilesManager implements the ISettingsHandler interface and provides an OnSettingsSaved() callback which actually calls CProfilesManager::Save(). This should automatically happen whenever calling CSettings::Save(). But looking at the code I just saw a bug. I'll fix it and open another PR and then this should be obsolete. Thanks for bringing it up.