xbmc/xbmc — pull request #2715 by leechguy (2013-05-09 16:37:54+00:00)
Title: [Fix] Load correct guisettings.xml file when switching profile

Update special://profile before attempting to load the profile's guisettings.xml file.

When switching profiles the guisettings.xml file from the Master User was always used. This happens because when you switch from one profile to another one, always the Master User profile is loaded in between (not sure why that is necessary though).
So when CSettings::Get():Load() is called, special://profile still points to the profile path of the Master User. It is only after the file guisettings.xml file is loaded, that the CProfilesManager::OnSettingsLoading() is called to update the special://profile path to the correct profile path.