Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update special://profile before attempting to load the profile's guis…

…ettings.xml file.
  • Loading branch information...
commit 12bdefb5c7bd009bb80172e478ad4d573af038da 1 parent 1fb487a
@leechguy leechguy authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 xbmc/profiles/ProfilesManager.cpp
View
9 xbmc/profiles/ProfilesManager.cpp
@@ -241,11 +241,14 @@ bool CProfilesManager::LoadProfile(size_t index)
if (m_currentProfile == index)
return true;
+ // unload any old settings
+ CSettings::Get().Unload();
+
m_currentProfile = index;
+ // point special://profile to the correct profile path
+ CSpecialProtocol::SetProfilePath(GetProfileUserDataFolder());
- // first unload any old settings
- CSettings::Get().Unload();
- // then load the new settings
+ // load the new settings
if (!CSettings::Get().Load())
{
CLog::Log(LOGFATAL, "CProfilesManager: unable to load settings for profile \"%s\"", m_profiles.at(index).getName().c_str());
Please sign in to comment.
Something went wrong with that request. Please try again.